We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee86e1 commit 062d00dCopy full SHA for 062d00d
ci/images/ci-runner/hack/bin/destroy-clusters.sh
@@ -17,6 +17,10 @@ EXCLUDE_CLUSTER=(local-cluster)
17
18
delete_cluster() {
19
cluster_name="$1"
20
+ # if hostedcluster doesn't exist, skip
21
+ if ! kubectl get hostedcluster -n clusters "$cluster_name" > /dev/null 2>&1; then
22
+ return
23
+ fi
24
deletionTimestamp=$(kubectl get hostedcluster -n clusters "$cluster_name" -o json \
25
| jq -r '.metadata.deletionTimestamp?'
26
)
0 commit comments