Skip to content

Commit f16cf55

Browse files
committed
fix: include kubeconfig path in token creation command for installation workflow
Signed-off-by: Akash <[email protected]>
1 parent 2eda0fa commit f16cf55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/installation-chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
id: token
125125
run: |
126126
export KUBECONFIG=$HOME/.kube/karmada.config
127-
CMD=$(karmadactl token create --print-register-command)
127+
CMD=$(karmadactl token create --print-register-command --kubeconfig $HOME/.kube/karmada.config )
128128
TOKEN=$(echo "$CMD" | grep -o '\--token [^ ]*' | cut -d' ' -f2)
129129
HASH=$(echo "$CMD" | grep -o '\--discovery-token-ca-cert-hash [^ ]*' | cut -d' ' -f2)
130130
ENDPOINT=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')

0 commit comments

Comments
 (0)