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 broken watch for CRDs on storageCluster controller #2872

Closed

Conversation

malayparida2000
Copy link
Contributor

The watch had builder.WithPredicates twice, which was causing the watch to not work as expected. Thus even after the CRD was created the controller was not able to detect it and queue a reconcile. Now the predicates are combined under one builder.WithPredicates.

The watch had builder.WithPredicates twice, which was causing the
watch to not work as expected. Thus even after the CRD was created
the controller was not able to detect it and queue a reconcile.
Now the predicates are combined under one builder.WithPredicates.

Signed-off-by: Malay Kumar Parida <[email protected]>
Copy link
Contributor

@leelavg leelavg left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, bug introduced in #2865. My testing might have worked due to a side effect. Needs a backport I guess?

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 28, 2024
Copy link
Contributor

openshift-ci bot commented Nov 28, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: leelavg, malayparida2000
Once this PR has been reviewed and has the lgtm label, please assign obnoxxx for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -235,8 +235,6 @@ func (r *StorageClusterReconciler) SetupWithManager(mgr ctrl.Manager) error {
builder.WithPredicates(
Copy link
Contributor

Choose a reason for hiding this comment

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

or should this use util.ComposePredicates? I don't remember does the default one allows any match or all matches.

@malayparida2000
Copy link
Contributor Author

https://issues.redhat.com/browse/DFBUGS-726,
@ShravaniVangur is now looking into the Bug, if necessary she would issue a fix.

@malayparida2000 malayparida2000 deleted the virt_fix branch January 7, 2025 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants