Commit f27971f 1 parent cb3ee5c commit f27971f Copy full SHA for f27971f
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 27
27
- name : delete-cluster
28
28
image : alpine/k8s:1.23.7
29
29
script : |
30
+ set +e
30
31
ENDPOINT_FLAG=""
31
32
if [ -n "$(params.endpoint)" ]; then
32
33
ENDPOINT_FLAG="--endpoint $(params.endpoint)"
37
38
aws eks delete-nodegroup --nodegroup-name $i --cluster-name $(params.cluster-name) $ENDPOINT_FLAG --region $(params.region);
38
39
aws eks wait nodegroup-deleted --nodegroup-name $i --cluster-name $(params.cluster-name) $ENDPOINT_FLAG --region $(params.region);
39
40
done;
41
+ echo "Starting to delete cluster..."
40
42
aws eks delete-cluster --name $(params.cluster-name) --region $(params.region) $ENDPOINT_FLAG
43
+ echo "Waiting for cluster to be deleted..."
44
+ aws eks wait cluster-deleted --name $(params.cluster-name) --region $(params.region) $ENDPOINT_FLAG
45
+ echo "Cluster is deleted..."
41
46
- name : teardown-eks-role-stack
42
47
image : alpine/k8s:1.23.7
43
48
script : |
You can’t perform that action at this time.
0 commit comments