fix(hypershift/gcp): reconstruct resource names when SHARED_DIR is empty#77347
fix(hypershift/gcp): reconstruct resource names when SHARED_DIR is empty#77347cristianoveiga wants to merge 1 commit intoopenshift:mainfrom
Conversation
When the provision step is aborted (SIGTERM), the SHARED_DIR Kubernetes Secret may not be updated, leaving post steps with no project IDs to clean up. Since resource names are deterministic (derived from NAMESPACE and UNIQUE_HASH env vars), the deprovision step can reconstruct them as a fallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Skipping CI for Draft Pull Request. |
|
/pj-rehearse pull-ci-openshift-hypershift-main-e2e-gke |
|
@cristianoveiga: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cristianoveiga The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
Rehearsal validated — manually aborted the Result: The deprovision step successfully reconstructed resource names from env vars and cleaned up all GCP resources:
Note: The |
Summary
NAMESPACEandUNIQUE_HASHenv vars), the deprovision step can now reconstruct them as a fallback using the same naming logic ashypershift-gcp-gke-provision.GKE_REGIONenv var to the deprovision ref for region reconstruction.How SHARED_DIR works
Each step runs as a separate pod. SHARED_DIR is backed by a Kubernetes Secret that is copied into the pod on start and uploaded back after the step exits. If a step is aborted (SIGTERM → SIGKILL), the Secret update may not complete, leaving SHARED_DIR empty for subsequent steps.
Evidence
sleep 30, deprovision found no filesTest plan
/pj-rehearse pull-ci-openshift-hypershift-main-e2e-gkeINFRA_ID:0:14-control-plane / hosted-cluster🤖 Generated with Claude Code