Skip to content

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

Merged
merged 1 commit into from
Jun 28, 2018
Merged

Conversation

fanzhangio
Copy link

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 19, 2018
@pwittrock
Copy link
Contributor

Why not copy the kubebuilder Predicates over:

https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/controller/predicates/predicates.go

The main ones we need are the ResourceVersionChanged, and the ability to compose predicates with And/Or

logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
)

var predicateLog = logf.KBLog.WithName("predicate").WithName("eventFilters")
Copy link
Contributor

Choose a reason for hiding this comment

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

predicateLog --> log ?

Copy link
Author

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 ?

Copy link
Contributor

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

Copy link
Contributor

@droot droot left a 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.

logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
)

var predicateLog = logf.KBLog.WithName("predicate").WithName("eventFilters")
Copy link
Contributor

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

@droot droot added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jun 28, 2018
@k8s-ci-robot k8s-ci-robot merged commit 2430f9c into kubernetes-sigs:master Jun 28, 2018
justinsb pushed a commit to justinsb/controller-runtime that referenced this pull request Dec 7, 2018
sttts pushed a commit to sttts/controller-runtime that referenced this pull request Apr 29, 2024
…n.kcp.example

🐛 fix kcp example generation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants