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

Automatic namespace creation doesn't appear to issue roles for user #107

Closed utherp0 closed 3 years ago

utherp0 commented 3 years ago

Doing a basic demo of the Operator - created a userconfig against the provider with the spec:

  objectTemplate: |
    apiVersion: v1
    kind: Namespace
    metadata:
      name: {{ .Name }}-sandbox

When a user logs in the namespace is created correctly, but the user has no access to it and doesn't see it.

Is this as intended and I'm missing something?

thedulus commented 3 years ago

You should add a rolebinding for your user, take a look at the examples: https://github.com/redhat-cop/namespace-configuration-operator/blob/master/examples/user-sandbox/user-config.yaml#L13-L26

raffaelespazzoli commented 3 years ago

may I close this?