Browse Source

[grafana] Fix wrong references to service account

Some references to the grafana service account were using the incorrect
variable.
Pep Turró Mauri 7 years ago
parent
commit
5d87e35546
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_grafana/templates/grafana.yml.j2

+ 2 - 2
roles/openshift_grafana/templates/grafana.yml.j2

@@ -17,7 +17,7 @@ spec:
         app: grafana
       name: grafana
     spec:
-      serviceAccountName: {{ grafana_namespace }}
+      serviceAccountName: {{ grafana_serviceaccount_name }}
 {% if grafana_node_selector is iterable and grafana_node_selector | length > 0 %}
       nodeSelector:
 {% for key, value in grafana_node_selector.items() %}
@@ -50,7 +50,7 @@ spec:
         - -https-address=:{{ grafana_service_targetport }}
         - -http-address=
         - -email-domain=*
-        - -client-id=system:serviceaccount:{{ grafana_namespace }}:{{ grafana_service_name }}
+        - -client-id=system:serviceaccount:{{ grafana_namespace }}:{{ grafana_serviceaccount_name }}
         - -upstream=http://localhost:{{ grafana_container_port }}
         - -provider=openshift
 #       - '-openshift-delegate-urls={"/api/datasources": {"resource": "namespace", "verb": "get", "resourceName": "{{ grafana_namespace }}", "namespace": "{{ grafana_namespace }}"}}'