SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

[Network Policy Reconciler] Fix Update Buffer Fail #245

Closed Neumann-Nils closed 4 years ago

Neumann-Nils commented 4 years ago

Description

When i.e. deleting a network policy that is not managed by Karydia, the logs will print out an error message as Karydia tries to find the examined network policy within the buffer. However, the buffer only contains network policies managed by Karydia.

Thus, I changed the updateBuffer section to update the buffer according the karydia-default-network-policies instead of the examined network policy.

Resolves #244.

Checklist

Before submitting this PR, please make sure: