Skip to content

Commit eb383d0

Browse files
THROWAWAY: probe whether the e2e GKE cluster was deleted
Run 34356382122 was cancelled and the runner was killed four minutes into `gcloud container clusters delete`. No human account has access to the project, so list the clusters from CI, which does. This branch and file are to be deleted once the answer is known. Signed-off-by: Richard Wall <richard.wall@cyberark.com>
1 parent 0654c24 commit eb383d0

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# THROWAWAY. Lists GKE clusters in the e2e project to confirm whether the
2+
# cleanup step of run 34356382122 completed after the runner was killed
3+
# mid-delete. Delete this branch and file once the answer is known.
4+
name: tmp-gke-cluster-probe
5+
on:
6+
push:
7+
branches: [tmp-gke-cluster-probe]
8+
9+
permissions:
10+
contents: read
11+
id-token: write
12+
13+
jobs:
14+
probe:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
steps:
18+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+
20+
- name: Authenticate to Google Cloud
21+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
22+
with:
23+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
24+
25+
- name: Set up gcloud
26+
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
27+
with:
28+
project_id: machineidentitysecurity-jsci-e
29+
30+
- name: List every cluster in the project
31+
run: |
32+
echo "=== all clusters, all locations ==="
33+
gcloud container clusters list \
34+
--project=machineidentitysecurity-jsci-e \
35+
--format="table(name,location,status,createTime,currentNodeCount)"
36+
37+
echo
38+
echo "=== does test-secretless-260909-132042 still exist? ==="
39+
if gcloud container clusters list \
40+
--project=machineidentitysecurity-jsci-e \
41+
--filter="name=test-secretless-260909-132042" \
42+
--format="value(name)" | grep -q .; then
43+
echo "PRESENT: the cleanup did not complete"
44+
else
45+
echo "ABSENT: the cleanup completed"
46+
fi

0 commit comments

Comments
 (0)