Przeglądaj źródła

Make the number of service catalog retries configurable

Dan Yasny 6 lat temu
rodzic
commit
56c79c6aa9

+ 3 - 0
roles/openshift_service_catalog/defaults/main.yml

@@ -7,3 +7,6 @@ openshift_use_openshift_sdn: True
 os_sdn_network_plugin_name: "redhat/openshift-ovs-subnet"
 
 openshift_service_catalog_image: "{{ l_os_registry_url | regex_replace('${component}' | regex_escape, 'service-catalog') }}"
+
+# Number of retries when waiting for the service catalog healthz to return 'ok' (retried every 10 seconds)
+openshift_service_catalog_retries: 60

+ 1 - 1
roles/openshift_service_catalog/tasks/start.yml

@@ -9,7 +9,7 @@
     warn: no
   register: endpoint_health
   until: endpoint_health.stdout == 'ok'
-  retries: 60
+  retries: "{{ openshift_service_catalog_retries }}"
   delay: 10
   changed_when: false
   # Ignore errors so we can log troubleshooting info on failures.