Skip to content

Commit 54fc35c

Browse files
authored
fix: read postgres and prometheus address from values (#84)
Signed-off-by: Nic <[email protected]>
1 parent f792ca9 commit 54fc35c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

charts/api7/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.8.0
18+
version: 0.9.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/api7/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# api7ee3
22

3-
![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
3+
![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

charts/api7/templates/dashboard-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ spec:
3636
{{- if .Values.postgresql.builtin }}
3737
- name: wait-for-postgresql
3838
image: "{{ .Values.busybox.image.repository }}:{{ .Values.busybox.image.tag }}"
39-
command: [ 'sh', '-c', "until nc -z -v -w3 api7-postgresql 5432; do echo waiting for postgresql `date`; sleep 2; done;" ]
39+
command: [ 'sh', '-c', "until nc -z -v -w3 {{ .Values.postgresql.fullnameOverride }} {{ .Values.postgresql.primary.service.ports.postgresql }}; do echo waiting for builtin postgresql service `date`; sleep 2; done;" ]
4040
securityContext:
4141
{{- toYaml .Values.securityContext | nindent 12 }}
4242
{{- end }}
4343
{{- if .Values.prometheus.builtin }}
4444
- name: wait-for-prometheus
4545
image: "{{ .Values.busybox.image.repository }}:{{ .Values.busybox.image.tag }}"
46-
command: [ 'sh', '-c', "until wget --timeout=3 -q --spider http://api7-prometheus-server:9090;do echo waiting for prometheus `date`; sleep 2; done;" ]
46+
command: [ 'sh', '-c', "until wget --timeout=3 -q --spider http://{{ .Values.prometheus.fullnameOverride }}-server:{{ .Values.prometheus.server.service.ports.http }}; do echo waiting for builtin prometheus service `date`; sleep 2; done;" ]
4747
securityContext:
4848
{{- toYaml .Values.securityContext | nindent 12 }}
4949
{{- end }}

0 commit comments

Comments
 (0)