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
Describe the bug
When testing grafana-sentry-datasource plugin, we ran into several problems, two of which our showstoppers:
the operator does not parse plugins from data sources. Contrary to the documentation (and as we studied from source code), the plugins names seem not to be automatically parsed from the GrafanaDatasource CR. It seems only GrafanaDashboard are processed.
the necessary params for this plugins are thrown out from CR, as such fields are not defined in CRDs.
We worked around the first problen by manually specifiying GF_INSTALL_PLUGINS env variable as stated in documentation.
However,, for the second problem, the datasource needs to be specified like this:
For the first problem, I believe similar logic should be implemented as with Datasources, either via explicit plugin section in GrafanaDatasource spec or derive it from the spec.datasources.type property.
Thanks,
Michal
The text was updated successfully, but these errors were encountered:
We don't support plugins defined in data sources. You'll have to add them to a dashboard. Regarding the other issue, x-kubernetes-preserve-unknown-fields: true might be worth trying. We currently whitelist every param explicitely and quite a few of them are missing.
pb82
added
triage/needs-information
Indicates an issue needs more information in order to work on it.
and removed
bug
Something isn't working
needs triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
labels
Jun 21, 2022
Describe the bug
When testing grafana-sentry-datasource plugin, we ran into several problems, two of which our showstoppers:
We worked around the first problen by manually specifiying GF_INSTALL_PLUGINS env variable as stated in documentation.
However,, for the second problem, the datasource needs to be specified like this:
https://grafana.com/grafana/plugins/grafana-sentry-datasource/
Both jsonData.orgSlug and secureJsonData.authToken are not defined in the CRD, and thus are pruned from CR. As a result, the datasource does not work.
Version
Grafana Operartor 4.4.1
To Reproduce
Try to create the datasource
Expected behavior
For the second problem, it should be enough to add:
x-kubernetes-preserve-unknown-fields: true
to the jsonData and secureJsonData properties in the CRD definiton, as it would be quite costly to synthetize all possible Json values for all plugins that are available for Grafana (per Kubernetes documentaion https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/).
For the first problem, I believe similar logic should be implemented as with Datasources, either via explicit plugin section in GrafanaDatasource spec or derive it from the spec.datasources.type property.
Thanks,
Michal
The text was updated successfully, but these errors were encountered: