-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add namespace selector using env variable #1434
feat: add namespace selector using env variable #1434
Conversation
@NissesSenap @weisdd @pb82 @theSuess thoughts? IMHO doesn't harm to have another way to specify this |
Sounds reasonable to me.
How do we see this working with RBAC, is it up to the grafana-operator admins to fix this on their own? It would also be nice if we added an e2e test for this. |
@NissesSenap i'm lacking context here, what is this supposed to achieve ? |
@eddycharly running the operator in the new mode called namespace_selector. I guess we need to run another instance of the operator. Create 2 namespaces, one with the label and one without and see what only one of the dashboards gets picked up by the grafana instances. Or something like that. Writing on my phone before going to bed, so sorry if I didn't think everything through. |
@atos-cosmin-gavagiuc , can you look at the comments in #1434 (comment)? It won't get merged until some kind of documentation exist. |
@NissesSenap, I've updated the helm chart 6699ee2. I'm not familiar with helm and I might have done it wrong. |
To get rid of error: mapping values are not allowed in this context
I update the helm config so it works with a string like We will keep RBAC in helm to cluster level access, since we can't force which namespace will need the access, since it's based on labels. Please write some docs about this new feature here: https://github.com/grafana/grafana-operator/blob/master/docs/docs/grafana.md#where-should-the-operator-look-for-grafana-resources Thanks for your work @atos-cosmin-gavagiuc . |
@NissesSenap I've added the a short description in the docs 510a9b7f6fd742f6f685489deab8f1e0d517ce25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@NissesSenap I've fixed that trailing whitespace. |
add namespace selector 1433