Skip to content

Commit 0b072f5

Browse files
Merge pull request #7222 from enj/patch-2
Automatic merge from submit-queue. Update API healthz check to use uri module This should prevent issues with curl getting upset with certs that have the same serial number and name. See openshift/origin#18405 /assign @sdodson
2 parents 63dbe26 + 79e283a commit 0b072f5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

roles/openshift_service_catalog/tasks/start_api_server.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99

1010
# wait to see that the apiserver is available
1111
- name: wait for api server to be ready
12-
command: >
13-
curl --noproxy '*' -k https://apiserver.kube-service-catalog.svc/healthz
14-
args:
15-
# Disables the following warning:
16-
# Consider using get_url or uri module rather than running curl
17-
warn: no
12+
uri:
13+
url: https://apiserver.kube-service-catalog.svc/healthz
14+
validate_certs: no
15+
return_content: yes
1816
register: api_health
19-
until: api_health.stdout == 'ok'
17+
until: "'ok' in api_health.content"
2018
retries: 60
2119
delay: 5
2220
changed_when: false

0 commit comments

Comments
 (0)