Skip to content

Commit

Permalink
fix: update kubeconfig path in token creation command for installatio…
Browse files Browse the repository at this point in the history
…n workflow

Signed-off-by: Akash <[email protected]>
  • Loading branch information
SkySingh04 committed Feb 2, 2025
1 parent d1105c6 commit d1ec088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/installation-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
id: token
run: |
export KUBECONFIG=$HOME/.kube/karmada.config
CMD=$(karmadactl token create --print-register-command --kubeconfig /etc/karmada/karmada-apiserver.config)
CMD=$(karmadactl token create --print-register-command --kubeconfig $HOME/.kube/karmada.config)
TOKEN=$(echo "$CMD" | grep -o '\--token [^ ]*' | cut -d' ' -f2)
HASH=$(echo "$CMD" | grep -o '\--discovery-token-ca-cert-hash [^ ]*' | cut -d' ' -f2)
ENDPOINT=$(echo "$CMD" | awk '{print $2}')
Expand Down

0 comments on commit d1ec088

Please sign in to comment.