kubeshop / monokle-admission-controller

Kubernetes Admission Controller for enforcing policies in your clusters
https://monokle.io
MIT License
9 stars 1 forks source link

Use Map instead of Set to store namespaces #19

Closed f1ames closed 1 year ago

f1ames commented 1 year ago

This PR fixes an issue with storing namespaces. Since Set was used, deletion did not work because object used as key was different for delete event (object reference). As a result when namespace was deleted from the cluster, it was not propagated by synchronizer and outdated list of namespaces was used.

I changed it to Map to have namespace names as key.

Changes

Fixes

Checklist