-
Notifications
You must be signed in to change notification settings - Fork 38
✨ Add cluster filtering to controller builder #114
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ntnn 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 |
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
f3aa9a4 to
513bc83
Compare
…rface Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
Adds
mcbuilder.WithClusterFilterto allow filtering which clusters should be engaged for a controller.The same cannot be implemented as a predicate as predicates only filter the received events and will still attempt to watch the resource in all clusters, which fails and disengages the cluster entirely if the cluster does not have the resource.
Drawback is that
TypedSource.ForClusterandTypedSyncingSource.SyncingForClusterreturn an additional value now to indicate whether a cluster should be engaged.This could be solved by returning an error
ErrClusterFilteredor similar to not change the interface.