You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested using grafana-operator:latest sha 2a564282916d with Grafana 6.2.5.
Found multiple issues when trying to create new datasources using CRD...
1. Casing of keys are not correct
When providing:
kind: GrafanaDataSource
...
basicAuth: true
The generated config becomes:
basicauth: true
From what I can tell, Grafana's provisioning config version 0 had snake_case and version 1 has camelCase.
Issue appears to in: pkg/apis/integreatly/v1alpha1/grafanadatasource_types.go
Where the yaml formatting is missing:
@dunse thanks for testing the operator and reporting those bugs! I'm looking into that. I've noticed that Grafana has a warning in the log about the current provisioning configuration, this might be related.
@dunse that's good to know. I'm currently working on overhauling the Grafana configuration itself (generating grafana.ini) and will take the datasources on afterwards.
Tested using grafana-operator:latest sha 2a564282916d with Grafana 6.2.5.
Found multiple issues when trying to create new datasources using CRD...
1. Casing of keys are not correct
When providing:
The generated config becomes:
From what I can tell, Grafana's provisioning config version 0 had snake_case and version 1 has camelCase.
Issue appears to in: pkg/apis/integreatly/v1alpha1/grafanadatasource_types.go
Where the yaml formatting is missing:
Should be:
2. Missing apiVersion
Documentation shows apiVersion as part of the provisioning file: https://grafana.com/docs/administration/provisioning/#example-datasource-config-file
When not specifying apiVersion 1, the parsing of the provisioning file does not follow documentation and does not work as expected.
3. jsonData and secureJsonData is not generated correctly
Documentation shows both should be generated as a map: https://grafana.com/docs/administration/provisioning/#example-datasource-config-file
However, the CRD expects a JSON string, which Grafana will reject when using apiVersion: 1.
The text was updated successfully, but these errors were encountered: