From 02d72116894ec7ebaffa6e36529309cfe55ad95b Mon Sep 17 00:00:00 2001 From: Akash Date: Tue, 4 Feb 2025 23:36:30 +0530 Subject: [PATCH] fix: add RBAC configuration for certificate signing in installation workflow Signed-off-by: Akash --- .github/workflows/installation-chart.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/installation-chart.yaml b/.github/workflows/installation-chart.yaml index 238ccf250d4b..1fbce580ae68 100644 --- a/.github/workflows/installation-chart.yaml +++ b/.github/workflows/installation-chart.yaml @@ -140,6 +140,13 @@ jobs: echo "Adding entry to /etc/hosts: $ENDPOINT_IP karmada-host-control-plane" echo "$ENDPOINT_IP karmada-host-control-plane" | sudo tee -a /etc/hosts + - name: Configure RBAC for certificate signing + run: | + export KUBECONFIG=$HOME/.kube/karmada.config + kubectl create clusterrolebinding karmada-bootstrap-csr \ + --clusterrole=system:node-bootstrapper \ + --group=system:bootstrappers + - name: Register cluster run: | karmadactl register ${{ steps.token.outputs.endpoint }} \