Skip to content

Commit

Permalink
Merging kube_config instead of removing it (#6234)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Kislenko committed Aug 6, 2019
1 parent f96c1b8 commit ec16da9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/local_kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ start_localkube() {
get_localkube
fi
kind create cluster --name ${LOCAL_CLUSTER_NAME} --image=kindest/node:${KUBE_VERSION}
cp $(kind get kubeconfig-path --name="kanister") ${KUBECONFIG}
if [ -e ${KUBECONFIG} ]; then
cp -fr ${KUBECONFIG} ${HOME}/.kube/config_bk
fi
KUBECONFIG=$(kind get kubeconfig-path --name="kanister")
export KUBECONFIG=${KUBECONFIG}:${HOME}/.kube/config_bk; kubectl config view --flatten > "${HOME}/.kube/config"
wait_for_nodes
wait_for_pods
}
Expand Down

0 comments on commit ec16da9

Please sign in to comment.