-
Notifications
You must be signed in to change notification settings - Fork 887
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
Allow explicit network policy enablement #381
Conversation
Hi @corest, thanks for the contribution. This sounds like a good idea but is a little confusing since you may want to install in OpenShift but have the policy disabled. I think we can just make this configurable using Additionally you'll need to add unit tests to make sure this configurable works as expected. You can find the |
I wanted to do that first but didn't want to break compatibility for someone who is using |
@jasonodonnell PTAL |
Can we merge this @jasonodonnell ? |
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. @tvoran can you also take a look at this? It's changing network policy default behavior but since NP isn't OpenShift specific, I'm recommending we break it out as such.
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.
@jasonodonnell Seems ok to me, and we'll probably want to add a note about it to our OpenShift docs once it's released.
Similar to the conversion around PR hashicorp#381, network policies are useful for the injector independent of openshift. This allows support for those use cases but similarly will require some configuration changes for openshift users.
For now, the only way to create a network policy - is to enable
openshift
.I don't need all the resources enabled by
openshift
configuration.But I still need network policy.
This PR allows configuring network policy creation without enabling
openshift