Skip to content
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

Fix network policy always applying to ingress #3272

Closed
wants to merge 1 commit into from

Conversation

nomaster
Copy link

@nomaster nomaster commented Aug 15, 2024

The if statement does not target the 'enabled' property, but the whole map of attributes. This leads to the network policy always listing the 'Ingress' policy type, which disrupts legitimate traffic.

fixes: #3268

The if statement does not target the 'enabled' property, but the whole map of attributes. This leads to the network policy always listing the 'Ingress' policy type, which disrupts legitimate traffic.

Signed-off-by: Mic Szillat <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Aug 15, 2024

CLA assistant check
All committers have signed the CLA.

@nomaster
Copy link
Author

Just found that the Helm chart values define

  • networkPolicy.enabled (default false)
  • networkPolicy.ingress (default true)
  • networkPolicy.egress.enabled (default false)

... which is quite confusing to me.

This means that the behavior is intended and this PR can be closed.

@nomaster nomaster closed this Aug 15, 2024
@nomaster nomaster deleted the patch-1 branch September 2, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants