Browse Source

Merge pull request #4978 from ewolinetz/bz1477440

Fixing SA and clusterrole namespaces
Scott Dodson 7 years ago
parent
commit
f338eb1e57

+ 1 - 1
roles/openshift_metrics/tasks/generate_rolebindings.yaml

@@ -41,7 +41,7 @@
 - name: Set hawkular cluster roles
   oc_obj:
     name: hawkular-metrics
-    namespace: "{{ openshift_metrics_hawkular_agent_namespace }}"
+    namespace: "{{ openshift_metrics_project }}"
     kind: clusterrole
     files:
     - "{{ mktemp.stdout }}/templates/hawkular-cluster-role.yaml"

+ 1 - 1
roles/openshift_metrics/tasks/generate_serviceaccounts.yaml

@@ -18,7 +18,7 @@
   oc_obj:
     name: "{{ item }}"
     kind: serviceaccount
-    namespace: "{{ openshift_metrics_hawkular_agent_namespace }}"
+    namespace: "{{ openshift_metrics_project }}"
     files:
     - "{{ mktemp.stdout }}/templates/metrics-{{ item }}-sa.yaml"
     delete_after: true