Skip to content

Commit

Permalink
Merge pull request #572 from vyzigold/fix_logging
Browse files Browse the repository at this point in the history
[ci] Fix logging job
  • Loading branch information
openshift-merge-bot[bot] authored Jan 7, 2025
2 parents 60698cb + 17f10d6 commit acb0410
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions ci/deploy-logging-dependencies/tasks/deploy-cluster-logging.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
- name: Create the SA and apply the right permissions
ansible.builtin.shell:
cmd: |
oc create sa collector -n openshift-logging
oc adm policy add-cluster-role-to-user logging-collector-logs-writer -z collector -n openshift-logging
oc adm policy add-cluster-role-to-user collect-application-logs -z collector -n openshift-logging
oc adm policy add-cluster-role-to-user collect-audit-logs -z collector -n openshift-logging
oc adm policy add-cluster-role-to-user collect-infrastructure-logs -z collector -n openshift-logging
- name: Create cluster log forwarder
ansible.builtin.shell:
cmd: |
Expand All @@ -6,7 +15,7 @@
- name: Wait for cluster log forwarder to be created
ansible.builtin.command:
cmd:
oc get clusterlogforwarder --namespace=openshift-logging instance
oc get clusterlogforwarder --namespace=openshift-logging collector
delay: 10
retries: 20
register: output
Expand All @@ -15,4 +24,4 @@
- name: Wait for the cluster log forwarder to be ready
ansible.builtin.command:
cmd: |
oc wait --timeout=300s --for condition=Ready=True --namespace=openshift-logging clusterlogforwarder instance
oc wait --timeout=300s --for condition=Ready=True --namespace=openshift-logging clusterlogforwarder collector

0 comments on commit acb0410

Please sign in to comment.