Skip to content

EPMDEDP-17289: fix: Count terminating CDPipelines as usage in the deletion webhooks - #317

Merged
SergK merged 1 commit into
masterfrom
refactor-removal-procedure
Aug 27, 2026
Merged

EPMDEDP-17289: fix: Count terminating CDPipelines as usage in the deletion webhooks#317
SergK merged 1 commit into
masterfrom
refactor-removal-procedure

Conversation

@SergK

@SergK SergK commented Aug 27, 2026

Copy link
Copy Markdown
Member

A CDPipeline blocks Codebase and CodebaseBranch deletion for as long as the object exists, terminating included. The previous DeletionTimestamp filter opened a window during pipeline teardown: the Codebase delete was admitted, the owner-reference cascade removed the CodebaseImageStreams, and the remaining Stage finalizers, which read those streams to strip environment labels serially last-to-first, wedged the Stage and the CDPipeline in Terminating forever.

Denials now name the terminating blocker ("being deleted") and advise waiting for the teardown to finish instead of removing the reference. Terminating Stages stay out of autotest-gate usage: stage teardown never reads the autotest codebase.

…etion webhooks

A CDPipeline blocks Codebase and CodebaseBranch deletion for as long as the
object exists, terminating included. The previous DeletionTimestamp filter
opened a window during pipeline teardown: the Codebase delete was admitted,
the owner-reference cascade removed the CodebaseImageStreams, and the
remaining Stage finalizers, which read those streams to strip environment
labels serially last-to-first, wedged the Stage and the CDPipeline in
Terminating forever.

Denials now name the terminating blocker ("being deleted") and advise
waiting for the teardown to finish instead of removing the reference.
Terminating Stages stay out of autotest-gate usage: stage teardown never
reads the autotest codebase.

Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>
@SergK
SergK requested a review from a team as a code owner August 27, 2026 14:00
@epmd-edp

Copy link
Copy Markdown
Collaborator

Pipeline review-codebase-operator-master-rs5j9 — ✓ Passed

Status Task Duration
✓ Passed github-set-pending-status 6s
✓ Passed fetch-repository 18s
✓ Passed init-values 7s
✓ Passed get-cache 2m5s
✓ Passed commit-validate 6s
✓ Passed dockerfile-lint 7s
✓ Passed helm-lint 7s
✓ Passed helm-docs 13s
✓ Passed build 49s
✓ Passed sonar 18s
✓ Passed save-cache 2m11s
✓ Passed buildkit-build 1m15s
✓ Passed github-report-pipeline-status 7s

Pushing new commits re-runs this pipeline automatically.
To re-run it without new commits, comment /recheck.

@SergK
SergK merged commit b17392d into master Aug 27, 2026
6 checks passed
@SergK
SergK deleted the refactor-removal-procedure branch August 27, 2026 14:06
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.

2 participants