delete existing kind cluster
This commit is contained in:
parent
e320fbcf12
commit
7049c260be
|
|
@ -6,6 +6,16 @@ set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
|
||||||
kind create cluster --name kind-m --config ./e2e/kind-config-multikind.yaml --loglevel debug
|
readonly cluster_name="kind-test-postgres-operator"
|
||||||
export KUBECONFIG="$(kind get kubeconfig-path --name="kind-m")"
|
|
||||||
|
# avoid interference with previous test runs
|
||||||
|
if [[ $(kind get clusters | grep "^${cluster_name}*") != "" ]]
|
||||||
|
then
|
||||||
|
rm "$KUBECONFIG"
|
||||||
|
unset KUBECONFIG
|
||||||
|
kind delete cluster --name ${cluster_name}
|
||||||
|
fi
|
||||||
|
|
||||||
|
kind create cluster --name ${cluster_name} --config ./e2e/kind-config-multikind.yaml
|
||||||
|
export KUBECONFIG="$(kind get kubeconfig-path --name=${cluster_name})"
|
||||||
kubectl cluster-info
|
kubectl cluster-info
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue