I have deployed grafana-operator via kustomize into my cluster with existing grafana deployment.
The grafana-operator resources are up and now I want to deploy a Grafana (Grafanas.grafana.integreatly.org/v1beta1) and GrafanaDashboard resource using this config:
Using documentation here and here I expected the admin credentials to be passed from an existing kubernetes secret. I get errors that the CR doesn't expect these fields:
Error from server (BadRequest): error when creating "grafana-cloud.yaml": Grafana in version "v1beta1" cannot be handled as a Grafana: strict decoding error: unknown field "spec.admin_password", unknown field "spec.admin_username"
Error from server (BadRequest): error when creating "grafana-cloud.yaml": Grafana in version "v1beta1" cannot be handled as a Grafana: strict decoding error: unknown field "spec.adminPassword", unknown field "spec.adminUser"
Expected behaviour:
Grafana deploys and will sync dashboards to my deployment
How can I pass my grafana admin credentials via k8s secret?
I have deployed grafana-operator via kustomize into my cluster with existing grafana deployment. The grafana-operator resources are up and now I want to deploy a Grafana (Grafanas.grafana.integreatly.org/v1beta1) and GrafanaDashboard resource using this config:
Using documentation here and here I expected the admin credentials to be passed from an existing kubernetes secret. I get errors that the CR doesn't expect these fields:
Error from server (BadRequest): error when creating "grafana-cloud.yaml": Grafana in version "v1beta1" cannot be handled as a Grafana: strict decoding error: unknown field "spec.admin_password", unknown field "spec.admin_username"
Error from server (BadRequest): error when creating "grafana-cloud.yaml": Grafana in version "v1beta1" cannot be handled as a Grafana: strict decoding error: unknown field "spec.adminPassword", unknown field "spec.adminUser"
Expected behaviour: Grafana deploys and will sync dashboards to my deployment
How can I pass my grafana admin credentials via k8s secret?