Skip to content

Commit

Permalink
chore(helm): add pipeline backend as dependency of api-gateway (#444)
Browse files Browse the repository at this point in the history
Because

- The api-gateway should start after the pipeline backend have
started.

This commit

- Adds pipeline backend as dependency of the api-gateway.
  • Loading branch information
donch1989 committed Mar 13, 2024
1 parent 601f963 commit 538c171
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/core/templates/api-gateway/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ spec:
args:
- >
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${MGMT_BACKEND_HOST}:${MGMT_BACKEND_PORT}/v1beta/health/mgmt)" != "200" ]]; do echo waiting for mgmt-backend; sleep 1; done &&
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${PIPELINE_BACKEND_HOST}:${PIPELINE_BACKEND_PORT}/v1beta/health/pipeline)" != "200" ]]; do echo waiting for pipeline-backend; sleep 1; done &&
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' ${INFLUXDB_HOST}:${INFLUXDB_PORT}/health)" != "200" ]]; do echo waiting for influxdb; sleep 1; done
env:
- name: MGMT_BACKEND_HOST
value: "{{ template "core.mgmtBackend" . }}"
- name: MGMT_BACKEND_PORT
value: "{{ template "core.mgmtBackend.publicPort" . }}"
- name: PIPELINE_BACKEND_HOST
value: "{{ template "core.pipelineBackend" . }}"
- name: PIPELINE_BACKEND_PORT
value: "{{ template "core.pipelineBackend.publicPort" . }}"
- name: INFLUXDB_HOST
value: "{{ template "core.influxdb" . }}"
- name: INFLUXDB_PORT
Expand Down

0 comments on commit 538c171

Please sign in to comment.