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

configdump: remove duplicates in networkpolicies config dump #352

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented Sep 13, 2023

Currently, the networkpolicies in the Envoy config dump contains duplicates.

The reason is that the networkpolicies are stored per endpoint ip (e.g. IPv4 & IPv6). Iterating over the policies need to take this into account.

Therefore, this commit introduces a filter based on the endpoint id of the policy.

Currently, the networkpolicies in the Envoy config dump contains duplicates.

The reason is that the networkpolicies are stored per endpoint ip. Iterating
over the policies need to take this into account.

Therefore, this commit introduces a filter based on the endpoint id of the policy.

Signed-off-by: Marco Hofstetter <[email protected]>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/networkpolicies-dump-duplicates branch from 5f5c10a to 7ac87df Compare September 13, 2023 10:02
@mhofstetter mhofstetter marked this pull request as ready for review September 13, 2023 10:13
@jrajahalme jrajahalme added this pull request to the merge queue Sep 14, 2023
Merged via the queue into cilium:main with commit b51a068 Sep 14, 2023
mhofstetter added a commit to mhofstetter/cilium that referenced this pull request Sep 14, 2023
This commit updates the Cilium Proxy (go.mod, Cilium Agent Dockerfile
& Helm Chart) to the latest version.

This includes the fix cilium/proxy#352 that fixes duplicated
NetworkPolicies in the Envoy Config Dump.

Signed-off-by: Marco Hofstetter <[email protected]>
@mhofstetter mhofstetter deleted the pr/mhofstetter/networkpolicies-dump-duplicates branch September 14, 2023 20:41
sayboras pushed a commit to cilium/cilium that referenced this pull request Sep 19, 2023
This commit updates the Cilium Proxy (go.mod, Cilium Agent Dockerfile
& Helm Chart) to the latest version.

This includes the fix cilium/proxy#352 that fixes duplicated
NetworkPolicies in the Envoy Config Dump.

Signed-off-by: Marco Hofstetter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants