-
Notifications
You must be signed in to change notification settings - Fork 377
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
WIP: Allow split of watch namespaces #1131
Conversation
2fae78a
to
534d249
Compare
@smuda sorry for the delay with feedback on this PR. Do we need to add some logic if a user tries to use both As you say, the secondary healthz endpoint isn't ideal and will be a bit painful to manage, especially in kustomize. I like the thinking of using labels on the namespace instead of providing a specific list. |
I was thinking of wrapping both healthz endpoints in a singular outer endpoint. What do you think? Yes, I can add some logic if both WATCH_NAMESPACE and the label config is specified. Or I could remove WATCH_NAMESPACE? |
Yeah I think that sounds like a good idea. Something something breaking change, I'm not too keen on cutting a 6.0 release, at the same time deprecating env variables is something that I think should be okay in many cases. But to be honest I would prefer to remove WATCH_NAMESPACE all together, it will be a bit strange to have 3 options to solve the same thing. What do you think @pb82 ? |
@NissesSenap yes, I don't quite understand the difference between the proposed |
…hboard", "GrafanaDatasourcer" and "GrafanaFolder"
That way a more granular security model can be created where the grafana operator is able to view/update for example secrets where |
@smuda I think we can merge this without adding a breaking change (removing the existing watch_namespace) once we have some documentation of the various flags. Would you mind adding a section about this here: https://github.com/grafana-operator/grafana-operator/blob/master/docs/docs/grafana.md Thanks! |
Let me just wrap healthz endpoints in a singular outer endpoint, add some to helm and run a bit more QA. |
This PR hasn't been updated for a while, marking as stale |
Not really stale, just a lot at work right now. |
This PR hasn't been updated for a while, marking as stale |
Allows split of namespaces, where Grafana CRDs are watched in namespace specified in $WATCH_NAMESPACE or from all namespaces with label $WATCH_LABEL and GrafanaDashboards, GrafanaFolders and GrafanaDatasources are watched in all namespaces with label $WATCH_LABEL_CRD.
Closes #1007
NOTE 1: I'm not really satisfied with how this PR turned out because there is now two ready-ness probe endpoints. Look at it as a start of a discussion.
NOTE 2: As I'm expecting a discussion with appropriate changes, I have not updated the helm chart to reflect these changes. The documentation needs to be updated as well.
NOTE 3: I've used the PR#1053 as base, which will be removed once that PR has been merged.