Skip to content

Commit 72920e9

Browse files
authored
fix the kubeconfig for gmsa related setup (#532)
1 parent 13a9138 commit 72920e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

capz/run-capz-e2e.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,10 @@ wait_for_nodes() {
589589
log "Configuring workload cluster nodes for gmsa tests"
590590
# require kubeconfig to be pointed at management cluster
591591
unset KUBECONFIG
592+
if [[ -f "${MANAGEMENT_KUBECONFIG}" ]]; then
593+
export KUBECONFIG="${MANAGEMENT_KUBECONFIG}"
594+
fi
595+
592596
pushd "$SCRIPT_ROOT"/gmsa/configuration
593597
go run --tags e2e configure.go --name "${CLUSTER_NAME}" --namespace default
594598
popd

0 commit comments

Comments
 (0)