Skip to content

fix: add predicate for snapshot deletion and improve PLR label filtering - #3

Closed
ascerra wants to merge 1 commit into
mainfrom
agent/2-fix-finalizer-removal-plrs
Closed

ascerra wants to merge 1 commit into
mainfrom
agent/2-fix-finalizer-removal-plrs

Conversation

@ascerra

@ascerra ascerra commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Add deletion timestamp detection to IntegrationSnapshotChangePredicate so the controller reconciles when a snapshot is being deleted, allowing the finalizer removal logic to run during snapshot GC.

Also add the pipelines.appstudio.openshift.io/type=test label to the PLR list filter in RemoveFinalizerFromAllIntegrationPipelineRunsOfSnapshot to ensure only integration test PLRs are matched.

Includes tests for predicate behavior and snapshot adapter finalizer removal via envtest.

Closes #2

Maintainers will complete the following section

Add deletion timestamp detection to IntegrationSnapshotChangePredicate so
the controller reconciles when a snapshot is being deleted, allowing the
finalizer removal logic to run during snapshot GC.

Also add the pipelines.appstudio.openshift.io/type=test label to the PLR
list filter in RemoveFinalizerFromAllIntegrationPipelineRunsOfSnapshot to
ensure only integration test PLRs are matched.

Includes tests for predicate behavior and snapshot adapter finalizer
removal via envtest.

Closes #2

Signed-off-by: Adam Scerra <ascerra@redhat.com>
@ascerra ascerra closed this Apr 9, 2026
@ascerra
ascerra deleted the agent/2-fix-finalizer-removal-plrs branch April 11, 2026 12:41
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.

Finalizer was not removed from all integration plrs of the cancelled and deleted snapshots

1 participant