controller-runtime
controller-runtime copied to clipboard
controller-runtime/pkg/controller/name.go usedNames is global
Hi. While developing a controllers, i did implement graceful shutdown for controllers and restart them afterwards. But, even the controller manager is being recreated, the usedNames map is not cleaned and there are no mechanism to do so.
I'm wondering if this can be improved and maybe tied to controller.Manager
This PR set the unique naming validation up where this PR added the option to skip the naming validation. It sounds like you can take advantage of this.
Yep, thanks for sharing. Not the best option to skip device validation for the whole operator but looks like that's the only option.