Skip to content

Commit 1f62204

Browse files
committed
Ensure we have a valid kubeconfig file
Signed-off-by: Manuel Alejandro de Brito Fontes <[email protected]>
1 parent 12623b1 commit 1f62204

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ function install() {
8888
if ! eksctl get cluster "${CLUSTER_NAME}" > /dev/null 2>&1; then
8989
# https://eksctl.io/usage/managing-nodegroups/
9090
eksctl create cluster --config-file "${EKSCTL_CONFIG}" --without-nodegroup --kubeconfig ${KUBECONFIG}
91+
else
92+
eksctl utils write-kubeconfig --cluster "${CLUSTER_NAME}"
9193
fi
9294

9395
# Disable default AWS CNI provider.

0 commit comments

Comments
 (0)