We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fcafec commit a688be9Copy full SHA for a688be9
prow.sh
@@ -580,6 +580,14 @@ EOF
580
export KUBECONFIG
581
}
582
583
+# Deletes kind cluster
584
+delete_cluster() {
585
+ if kind get clusters | grep -q csi-prow; then
586
+ run kind delete cluster --name=csi-prow || die "kind delete failed"
587
+ fi
588
+ unset KUBECONFIG
589
+}
590
+
591
# Looks for the deployment as specified by CSI_PROW_DEPLOYMENT and CSI_PROW_KUBERNETES_VERSION
592
# in the given directory.
593
find_deployment () {
@@ -1017,6 +1025,7 @@ main () {
1017
1025
fi
1018
1026
1019
1027
1028
+ delete_cluster
1020
1029
1021
1030
1022
1031
if tests_need_alpha_cluster && [ "${CSI_PROW_E2E_ALPHA_GATES}" ]; then
@@ -1047,6 +1056,7 @@ main () {
1047
1056
1048
1057
1049
1058
1059
1050
1060
1051
1061
1052
1062
0 commit comments