-
Notifications
You must be signed in to change notification settings - Fork 331
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
watchNamespaces improvements #1392
Conversation
…tive instead of mutually exclusive Signed-off-by: Peter Wilcsinszky <[email protected]>
@nak0f as we are preparing to build on top of these selectors I wanted to reconsider making the two different namespace lists additive instead of exclusive to reduce frustration of users as they have to debug through the logging resource. also this adds a few tests to cover the behaviour |
Signed-off-by: Peter Wilcsinszky <[email protected]>
Another option would be to remove completely |
@aslafy-z sounds good (I wasn't aware of that label), but that would be a breaking change affecting lots of users, thus I would avoid it now. |
Signed-off-by: Peter Wilcsinszky <[email protected]>
I opened #1394 to track this enhancement proposal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Make logging.spec.watchNamespaces (explicit static list) and logging.spec.watchNamespaceSelector (label based dynamic list) additive instead of exclusive for hopefully better semantics. Add tests for better coverage (looking into reusing the same thing for a different use case as well) Add namespace watches and trigger reconcile on loggings with watchNamespaceSelector defined Signed-off-by: Peter Wilcsinszky <[email protected]>
logging.spec.watchNamespaces
(explicit static list) andlogging.spec.watchNamespaceSelector
(label based dynamic list) additive instead of exclusive for hopefully better semantics.Signed-off-by: Peter Wilcsinszky [email protected]