Skip to content

Fix PVC race in teardown by draining pods before deletion#33

Merged
trevor-vaughan merged 1 commit into
mainfrom
fix/gitlab-teardown
Jul 2, 2026
Merged

Fix PVC race in teardown by draining pods before deletion#33
trevor-vaughan merged 1 commit into
mainfrom
fix/gitlab-teardown

Conversation

@trevor-vaughan

Copy link
Copy Markdown
Collaborator

The old teardown deleted deployments and PVCs concurrently with
--wait=false, so PVCs got stuck in Terminating while pods still
held volume mounts.

Scale deployments to zero and wait for pods to drain before
deleting PVCs with --wait=true. Remove retry loops, verification
queries, and remaining-resource reporting — let CI handle retries
if anything fails.

Assisted-by: Claude Opus 4.6
Signed-off-by: Trevor Vaughan tvaughan@redhat.com

The old teardown deleted deployments and PVCs concurrently with
--wait=false, so PVCs got stuck in Terminating while pods still
held volume mounts.

Scale deployments to zero and wait for pods to drain before
deleting PVCs with --wait=true. Remove retry loops, verification
queries, and remaining-resource reporting — let CI handle retries
if anything fails.

Assisted-by: Claude Opus 4.6
Signed-off-by: Trevor Vaughan <tvaughan@redhat.com>
@trevor-vaughan trevor-vaughan marked this pull request as ready for review July 2, 2026 20:52
@trevor-vaughan trevor-vaughan merged commit 2b32305 into main Jul 2, 2026
23 checks passed
@trevor-vaughan trevor-vaughan deleted the fix/gitlab-teardown branch July 2, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant