-
Notifications
You must be signed in to change notification settings - Fork 415
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
Add folder UID to grafanaFolder #1599
Comments
Hey, the folder UID will be taken from the kubernetes For example:
Will use We'll add For future versions of the resources (https://github.com/grafana/grafana-operator/milestone/4) we can consider a user-provided UID field. |
I was searching through the CRD and couldn't find a way to do that, so this is awesome. Thanks! I'll test it now. |
Hello, I've been looking forward to support for nested folders in Grafana Operator, however I'm at a bit of a loss here. As far as i can tell, metadata.uid is a read-only field that is generated on resource creation, any attempt to manually set it at creation just leads to the manual value being thrown away and replaced by an autogenerated one. This goes from both manually testing it out and the k8s documentation here. So the only way to create a nested folder now seems to be to create a folder, describe the object and use the UID in creating the nested folder. Also as dashboards do not take a folderUID, there seems to be no way to actually use the operator to create a dashboard in the nested folder... Please tell me if I'm mistaken in any of this, but my testing seems to match what i wrote. There seems to be no way to actually use this feature. |
We're not quite finished implementing this feature. #1604 will add |
Can we specify the folder UID, as optional, when creating the Grafana folder?
This way, we can pre-provision the parent folder and use its UID as the parentUID for the child folder.
Otherwise, I fear that the folder UID will be autogenerated and will differ in each Grafana environment.
The text was updated successfully, but these errors were encountered: