Closed CodeClinch closed 5 years ago
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
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.
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.