-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Implement predicate #53
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
Conversation
Why not copy the kubebuilder Predicates over: The main ones we need are the ResourceVersionChanged, and the ability to compose predicates with And/Or |
pkg/predicate/predicate.go
Outdated
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log" | ||
) | ||
|
||
var predicateLog = logf.KBLog.WithName("predicate").WithName("eventFilters") |
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.
predicateLog --> log ?
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.
Don't we use unified runtime log
?
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.
I was suggesting to rename predicateLog
--> log
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.
looks good except the predicateLog
name. Lets rename that to log
and then we are good to go.
pkg/predicate/predicate.go
Outdated
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log" | ||
) | ||
|
||
var predicateLog = logf.KBLog.WithName("predicate").WithName("eventFilters") |
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.
I was suggesting to rename predicateLog
--> log
Implement predicate
…n.kcp.example 🐛 fix kcp example generation
kubernetes-sigs/kubebuilder#240