Skip to content

Commit

Permalink
[ocp4_workload_authentication] Add retries/delay to k8s tasks (#8920)
Browse files Browse the repository at this point in the history
  • Loading branch information
agonzalezrh authored Dec 9, 2024
1 parent 09745e0 commit b0c67aa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,19 @@
kubernetes.core.k8s:
state: present
definition: "{{ lookup('template', 'secret-htpasswd.yaml.j2') | from_yaml }}"
register: r_htpasswd_secret
retries: 5
delay: 10
until: r_htpasswd_secret is success

- name: Update OAuth configuration
kubernetes.core.k8s:
state: present
definition: "{{ lookup('file', 'oauth-htpasswd.yaml') | from_yaml }}"
register: r_htpasswd_oauth
retries: 5
delay: 10
until: r_htpasswd_oauth is success

- name: Print user information messages
when: ocp4_workload_authentication_enable_user_info_messages | bool
Expand Down

0 comments on commit b0c67aa

Please sign in to comment.