From df926f0dd58d002ab91041944e7da78d0dac48aa Mon Sep 17 00:00:00 2001 From: Antonio Costa Date: Thu, 18 Apr 2024 11:58:47 +0200 Subject: [PATCH] fix kubeconfig location --- kind/kind.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kind/kind.sh b/kind/kind.sh index 965a6ac2..a96c8f83 100755 --- a/kind/kind.sh +++ b/kind/kind.sh @@ -611,8 +611,12 @@ EOF # succeeded "2" "Refreshing kube configuration..." # fi fi + KIND_EXPORT_KC_CMD="${KIND_COMMAND} export kubeconfig -n ${CLUSTER_NAME} --verbosity ${LOGGING_VERBOSITY} " + KIND_EXPORT_KC_CMD+=" --kubeconfig ${KUBECONFIG_TGT} " + fi + note "5" "KIND_EXPORT_KC_CMD: ${KIND_EXPORT_KC_CMD}" note_start_task "2" "Export kubeconfig..." - ${KIND_COMMAND} export kubeconfig -n ${CLUSTER_NAME} + ${KIND_EXPORT_KC_CMD} succeeded "2" "Export kubeconfig..." set +e note_start_task "2" "Connect the container registry to the kind network..."