Browse Source

Merge pull request #7856 from ingvagabund/prefix-the-node-problem-detector-cluster-role-with-system

Prefix the node-problem-detector with the system:
Jan Chaloupka 7 years ago
parent
commit
1522640694

+ 1 - 1
roles/openshift_node_problem_detector/tasks/install.yaml

@@ -11,7 +11,7 @@
     user: "system:serviceaccount:{{ openshift_node_problem_detector_namespace }}:{{ openshift_node_problem_detector_service_account }}"
     namespace: "{{ openshift_node_problem_detector_namespace }}"
     resource_kind: cluster-role
-    resource_name: "{{ openshift_node_problem_detector_cluster_role_name }}"
+    resource_name: "system:{{ openshift_node_problem_detector_cluster_role_name }}"
 
 - name: Grant privileged SCC from node problem detector service account
   oc_adm_policy_user:

+ 1 - 1
roles/openshift_node_problem_detector/tasks/uninstall.yaml

@@ -20,7 +20,7 @@
     user: "system:serviceaccount:{{ openshift_node_problem_detector_namespace }}:{{ openshift_node_problem_detector_service_account }}"
     namespace: "{{ openshift_node_problem_detector_namespace }}"
     resource_kind: cluster-role
-    resource_name: "{{ openshift_node_problem_detector_cluster_role_name }}"
+    resource_name: "system:{{ openshift_node_problem_detector_cluster_role_name }}"
 
 - name: remove node problem detector service account
   oc_serviceaccount: