Skip to content

Commit 17f10d6

Browse files
committed
Add the SA and the needed permissions
1 parent bd7086f commit 17f10d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci/deploy-logging-dependencies/tasks/deploy-cluster-logging.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
- name: Create the SA and apply the right permissions
2+
ansible.builtin.shell:
3+
cmd: |
4+
oc create sa collector -n openshift-logging
5+
oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector -n openshift-logging
6+
oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging
7+
oc adm policy add-cluster-role-to-user collect-audit-logs -z collector -n openshift-logging
8+
oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector -n openshift-logging
9+
110
- name: Create cluster log forwarder
211
ansible.builtin.shell:
312
cmd: |

0 commit comments

Comments
 (0)