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

Dynamically create a ServiceAccount and RoleBinding using the namespace name #20

Closed sergeimonakhov closed 4 years ago

sergeimonakhov commented 4 years ago

is it possible?

raffaelespazzoli commented 4 years ago

@D1abloRUS if you mean that the created ServiceAccount and RoleBinding should be somehow parametric on the namespace name, then no it is not possible at the moment because there is no support for templating.

sergeimonakhov commented 4 years ago

@raffaelespazzoli it would be great

raffaelespazzoli commented 4 years ago

do you want to be able to name the service account and the role binding based on the namespace name? That would be difficult because the resource name is a key used by the operator to retrieve the resource at the later time and compare it with the desired state. Adding the logic to support renaming resources it's probably possible (I'd have to think about it) but it would make the operator logic way more complex. What you case are you trying to address?

raffaelespazzoli commented 4 years ago

Duplicate of #29 Duplicate of #28

raffaelespazzoli commented 4 years ago

this has been closed with #37