Browse Source

adding pods/logs to manageiq role

This will allow manageiq to read the logs from elasticsearch
in the logging project.

Also, adding role to correct user and as clusterrole
Erez Freiberger 7 years ago
parent
commit
497c01b5aa

+ 6 - 0
roles/openshift_manageiq/tasks/main.yaml

@@ -24,6 +24,12 @@
     - apiGroups:
       - ""
       resources:
+      - pods/log
+      verbs:
+      - "get"
+    - apiGroups:
+      - ""
+      resources:
       - pods/proxy
       verbs:
       - "*"

+ 2 - 2
roles/openshift_manageiq/vars/main.yml

@@ -3,9 +3,9 @@ manage_iq_tasks:
 - resource_kind: role
   resource_name: admin
   user: management-admin
-- resource_kind: role
+- resource_kind: cluster-role
   resource_name: management-infra-admin
-  user: management-admin
+  user: system:serviceaccount:management-infra:management-admin
 - resource_kind: cluster-role
   resource_name: cluster-reader
   user: system:serviceaccount:management-infra:management-admin