diff --git a/ci-operator/step-registry/openshift/edge-tooling/ci-monitor/openshift-edge-tooling-ci-monitor-commands.sh b/ci-operator/step-registry/openshift/edge-tooling/ci-monitor/openshift-edge-tooling-ci-monitor-commands.sh index b3088e974e9fe..70af53074aabd 100644 --- a/ci-operator/step-registry/openshift/edge-tooling/ci-monitor/openshift-edge-tooling-ci-monitor-commands.sh +++ b/ci-operator/step-registry/openshift/edge-tooling/ci-monitor/openshift-edge-tooling-ci-monitor-commands.sh @@ -54,6 +54,10 @@ if ! echo "${GCLOUD_SHA} ${GCLOUD_TGZ}" | sha256sum -c -; then fi tar -xzf "${GCLOUD_TGZ}" -C /tmp rm -f "${GCLOUD_TGZ}" +# Redirect gcloud config to a writable directory — /home/claude/.config/gcloud/ +# is not writable in CI pods, causing install.sh to fail with PermissionError. +export CLOUDSDK_CONFIG="/tmp/gcloud-config" +mkdir -p "${CLOUDSDK_CONFIG}" /tmp/google-cloud-sdk/install.sh --quiet --path-update true export PATH="/tmp/google-cloud-sdk/bin:${PATH}"