Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: explicit workflow invovation cleanup issue #2680

Merged
merged 5 commits into from
Feb 5, 2025
Merged

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Feb 4, 2025

Signed-off-by: Attila Mészáros [email protected]

Signed-off-by: Attila Mészáros <[email protected]>
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 4, 2025
@csviri csviri linked an issue Feb 4, 2025 that may be closed by this pull request
@@ -195,7 +195,7 @@ public DeleteControl execute() throws Exception {

// The cleanup is called also when explicit invocation is true, but the cleaner is not
// implemented
if (managedWorkflow.hasCleaner() || !explicitWorkflowInvocation) {
if (managedWorkflow.hasCleaner() && !explicitWorkflowInvocation) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I miss the context here, but if I understand the comment above correctly it should be:

Suggested change
if (managedWorkflow.hasCleaner() && !explicitWorkflowInvocation) {
if (managedWorkflow.hasCleaner() || explicitWorkflowInvocation) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the PR and also the comment. It's a bit more complicated than that.

Signed-off-by: Attila Mészáros <[email protected]>
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri changed the title fix: explicit workflow invovation fix: explicit workflow invovation cleanup issue Feb 4, 2025
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri marked this pull request as ready for review February 5, 2025 11:16
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 5, 2025
Signed-off-by: Attila Mészáros <[email protected]>
@csviri csviri requested review from xstefank and metacosm February 5, 2025 11:19
@csviri csviri merged commit 03eb78d into main Feb 5, 2025
57 checks passed
@csviri csviri deleted the fix-explicit-invocation branch February 5, 2025 13:59
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.

Error deleting a custom resources
3 participants