You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set client_request_timeout from annotation in the CR (#2077)
add the functionality to accept an annotation in the awx-cr to be able to override the default client_request_timeout value.
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
- name: set client_request_timeout based on annotation
19
+
set_fact:
20
+
client_request_timeout: "{{ (this_annotations['aap.ansible.io/client-request-timeout'][:-1]) | int }}"
21
+
client_request_timeout_overidden: true
22
+
when:
23
+
- "'aap.ansible.io/client-request-timeout' in this_annotations"
24
+
- this_annotations['aap.ansible.io/client-request-timeout'] is match('^\\d+s$')
25
+
26
+
- name: client_request_timeout has been changed
27
+
debug:
28
+
msg: "client_request_timeout's default 30s value has been overriden by the annotation 'aap.ansible.io/client-request-timeout' to {{ client_request_timeout }}s"
0 commit comments