Skip to content

Commit

Permalink
Update cloud job cleanup scripts for correct secret access (#6503)
Browse files Browse the repository at this point in the history
Added sudo to the clean job script to align with the login process and ensure correct
access to the necessary secrets. The clean job was failing to access the correct secrets
because it was not using sudo, whereas the login process used with Jenkins account.

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
  • Loading branch information
XinShuYang authored Jul 5, 2024
1 parent 75699cf commit 0d6f201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/jenkins/jobs/macros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
- shell: |-
#!/bin/bash
set -ex
./ci/test-conformance-gke.sh --gcloud-sdk-path "${GCLOUD_SDK_PATH}" --cluster-name "${CLUSTERNAME}" --cleanup-only
sudo ./ci/test-conformance-gke.sh --gcloud-sdk-path "${GCLOUD_SDK_PATH}" --cluster-name "${CLUSTERNAME}" --cleanup-only
- builder:
name: builder-aks-cluster-cleanup
builders:
- shell: |-
#!/bin/bash
set -ex
./ci/test-conformance-aks.sh --cluster-name "${CLUSTERNAME}" --cleanup-only
sudo ./ci/test-conformance-aks.sh --cluster-name "${CLUSTERNAME}" --cleanup-only
- builder:
name: builder-workload-cluster-garbage-collection
Expand Down

0 comments on commit 0d6f201

Please sign in to comment.