FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: handling delete non-active dependent when parent reconcile condition false by csviri · Pull Request #3273 · operator-framework/java-operator-sdk · GitHub

fix: handling delete non-active dependent when parent reconcile condition false - #3273

Merged
csviri merged 9 commits into
operator-framework:mainfrom
csviri:delete-activation-fix
Apr 8, 2026
Merged

fix: handling delete non-active dependent when parent reconcile condition false#3273
csviri merged 9 commits into
operator-framework:mainfrom
csviri:delete-activation-fix

Conversation

csviri commented Apr 7, 2026
edited
Loading

Copy link
Copy Markdown
Collaborator
  • fixes registration and de-registration of dynamic event sources for activation condition
  • simplifies logic workflow reconciler

Signed-off-by: Attila Mészáros a_meszaros@apple.com

…tion false

Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
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 Apr 7, 2026
csviri added 3 commits April 7, 2026 13:19
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri marked this pull request as ready for review April 7, 2026 12:26
Copilot AI review requested due to automatic review settings April 7, 2026 12:26
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 Apr 7, 2026
openshift-ci Bot requested review from metacosm and xstefank April 7, 2026 12:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

This PR fixes the handling of deleting non-active dependents when parent reconciliation conditions are false, and improves the event source management for activation conditions. The changes introduce a condition result caching mechanism to optimize condition evaluation and refactor the deletion logic for better clarity.

Changes:

  • Added condition result caching to avoid redundant evaluations within a single reconciliation cycle
  • Refactored deletion handling to check activation conditions at execution time rather than during marking phase
  • Enhanced InformerEventSource with a guard clause to prevent starting an already-running event source
  • Added test coverage for event source registration/deregistration behavior with activation conditions

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
WorkflowReconcileExecutorTest.java Added EventSourceRetriever mock and three new test cases for activation condition event source management
InformerEventSource.java Added guard clause in start() method to prevent redundant starts
WorkflowReconcileExecutor.java Refactored deletion logic and removed activation condition parameter from handleReconcileOrActivationConditionNotMet
AbstractWorkflowExecutor.java Added condition result caching in isConditionMet() method
BaseWorkflowResult.java Added getConditionResult() method to support condition caching

csviri added 3 commits April 7, 2026 15:07
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri added 2 commits April 8, 2026 16:10
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
csviri merged commit c048921 into operator-framework:main Apr 8, 2026
27 checks passed
dongjoon-hyun added a commit to apache/spark-kubernetes-operator that referenced this pull request Apr 10, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade `operator-sdk` to 5.3.3.

### Why are the changes needed?

To bring the latest bug fixes of Java Operator SDK.
- https://github.com/operator-framework/java-operator-sdk/releases/tag/v5.3.3
  - operator-framework/java-operator-sdk#3273

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.6

Closes #628 from dongjoon-hyun/SPARK-56433.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

listSyncAndWatch failed for route.openshift encountered for BulkDependentResource with activationCondition downstream of a failing reconcilePrecondition

4 participants


Back | FazBrowse Home | New Git URL