SAP-archive / karydia

Kubernetes Security Walnut
Other
77 stars 10 forks source link

Network Policy Reconciler Name Issue #132

Closed CodeClinch closed 5 years ago

CodeClinch commented 5 years ago

Description

After Karydia is restarted the buffer map is empty. A check as it is implemented in line 254 will fail.

https://github.com/karydia/karydia/blob/e7d7c1eb320091b4b00f0e2efd5267ee7559171d/pkg/controller/networkpolicy_reconciler.go#L254

Implementation idea

It is necessary that potentially used network policies are known. This could be solved with the idea of replacing the network policy config maps with a custom type.