-
Notifications
You must be signed in to change notification settings - Fork 3.4k
policy: Add config for enabling Cilium NetworkPolicy #35049
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
cab057e
to
00d578b
Compare
00d578b
to
7f00eeb
Compare
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.
- Should CCNP have separate enablement?
- Should this short-circuit validation? operator/pkg/networkpolicy/cell.go
- Should this disable the operator watchers? operator/cmd/root.go
7f4528e
to
79fc6cf
Compare
Great questions @sypakine!
It would be good to differentiate CNP and CCNP. I propose to do it as a follow up. For now one flag will stand for both CNP and CCNP.
Yes, it should. I added it, and also for cilium-operator to read the same flag.
Yes, it should. I added it. It reuses the same cilium-operator from the previous point. Watchers in cilium-operator need to be migrated to |
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 with nit about the flag/comment lacking clarity that this applies to both CNP and CCNP.
159f04c
to
4307577
Compare
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.
🚀
Signed-off-by: Dorde Lapcevic <dordel@google.com>
/test |
Adding @squeed to reviewers to double check for sig-policy group. |
Related to modularizing network policies: #33360
Signed-off-by: Dorde Lapcevic <dordel@google.com>