-
Notifications
You must be signed in to change notification settings - Fork 47
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
Merge watches for hybrid and helm #143
Merge watches for hybrid and helm #143
Conversation
cc: @fabianvf |
@varshaprasad96 I'm curious what the motivation is for this. IIRC, these are both optional additions to the |
This PR makes the following changes: 1. Allow passing label selectors in watches 2. Remove legacy watches
b164077
to
3bf8620
Compare
Pull Request Test Coverage Report for Build 1577933045
💛 - Coveralls |
reconciler.WithGroupVersionKind(w.GroupVersionKind), | ||
reconciler.WithOverrideValues(w.OverrideValues), | ||
reconciler.WithSelector(w.Selector), | ||
reconciler.WithSelector(*w.Selector), |
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.
if w.Selector is nil does this fail with a nil pointer exception?
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.
since its optional, nope. If selector is nil, we won't have predicate created to filter resources
func parsePredicateSelector(selector metav1.LabelSelector) (ctrlpredicate.Predicate, error) { |
This PR does the following:
watches and instead accept it from flags.
PS: follow up would be to remove legacy/watches.yaml entirely
Signed-off-by: varshaprasad96 varshaprasad96@gmail.com