redhat-cop / namespace-configuration-operator

The namespace-configuration-operator helps keeping configurations related to Users, Groups and Namespaces aligned with one of more policies specified as a CRs
Apache License 2.0
204 stars 55 forks source link

Namespace, Group and User configuration #37

Closed raffaelespazzoli closed 4 years ago

raffaelespazzoli commented 4 years ago

this PR heavily refactor the namespace-configuration-operator giving the ability to react not only to namespaces but also to user and groups to create arbitrary objects. The internal engine has been rewritten and should be much more efficient as it allocate one manager for all the object being create/watched, as opposed to one manager per object. Also this refactoring introduces the ability to template the resources. Finally a generalized object at handling resources has been adopted, so any type of object can be created, not just those who comply with the standard format.

Fixes #34 Fixes #33 Fixes #29 Fixes #27

I'm opening this PR now, so people interested in those fixes can take a look and comment. @redmikhail @jtudelag @sboschman @rh-tstockwell

raffaelespazzoli commented 4 years ago

@sboschman I am at the early stages at this point and no image has been build, you are supposed to be testing from your terminal. Those instructions work as long as you have operator-sdk 1.17. I never found the memory leak, hopefully the new approach will eliminate it, if not it will certainly greatly mitigate it,