Skip to content

Commit

Permalink
fix: Increase csr wait time (#139)
Browse files Browse the repository at this point in the history
Increase csr wait time, to resolve low network performance issues.

Signed-off-by: Klaus Smolin <smolin@de.ibm.com>
  • Loading branch information
smolin-de committed May 26, 2023
1 parent e8609fe commit db8d7a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions roles/approve_certs/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
failed_when: false
when: approve_certs_task is defined and approve_certs_cleanup

- name: Approve all pending CSRs in the next 15 min (async task)
- name: Approve all pending CSRs in the next 30 min (async task)
tags: approve_certs
ansible.builtin.shell: |
set -o pipefail
for i in {1..60} ; do
for i in {1..120} ; do
# Approve all pending requests
LIST=$(oc get csr 2> /dev/null | grep -i pending | awk '{print $1}')
[ ! -z "${LIST}" ] && echo "${LIST}" | xargs oc adm certificate approve || true
sleep 15
done
# Run for 15 min
async: 900
# Run for 30 min
async: 1800
poll: 0
register: approve_certs_task
when: not approve_certs_cleanup
when: not approve_certs_cleanup

0 comments on commit db8d7a7

Please sign in to comment.