Skip to content

Commit

Permalink
update curl command for init containers
Browse files Browse the repository at this point in the history
The args for the culr job on the init containers in osm-controller and
osm-injector has beeen updated to use curl params rather than bash

Signed-off-by: Sneha Chhabria <snchh@microsoft.com>
  • Loading branch information
snehachhabria committed Nov 1, 2021
1 parent 5d5e0a8 commit 1f95871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions charts/osm/templates/osm-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,7 @@ spec:
initContainers:
- name: init-osm-controller
image: {{ .Values.osm.curlImage }}
args:
- /bin/sh
- -c
- >
set -x;
while [ $(curl --connect-timeout 2 -sw '%{http_code}' "http://osm-bootstrap.{{ include "osm.namespace" . }}.svc.cluster.local:9095/healthz" -o /dev/null) -ne 200 ]; do
sleep 10;
done
command: ["curl", "http://osm-bootstrap.{{ include "osm.namespace" . }}.svc.cluster.local:9095/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
containers:
- name: osm-controller
image: "{{ include "osmController.image" . }}"
Expand Down
9 changes: 1 addition & 8 deletions charts/osm/templates/osm-injector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,7 @@ spec:
initContainers:
- name: init-osm-injector
image: {{ .Values.osm.curlImage }}
args:
- /bin/sh
- -c
- >
set -x;
while [ $(curl --connect-timeout 2 -sw '%{http_code}' "http://osm-bootstrap.{{ include "osm.namespace" . }}.svc.cluster.local:9095/healthz" -o /dev/null) -ne 200 ]; do
sleep 10;
done
command: ["curl", "http://osm-bootstrap.{{ include "osm.namespace" . }}.svc.cluster.local:9095/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
containers:
- name: osm-injector
image: "{{ include "osmInjector.image" . }}"
Expand Down

0 comments on commit 1f95871

Please sign in to comment.