Skip to content

Commit

Permalink
GeoWeb presets backend: add initContainer waiting for database being …
Browse files Browse the repository at this point in the history
…available
  • Loading branch information
petringo committed Oct 22, 2024
1 parent e7a1762 commit bee6c7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/geoweb-presets-backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.12.1
version: 2.12.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/geoweb-presets-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ The following table lists the configurable parameters of the Presets backend cha

| Chart version | presets version |
|---------------|-----------------|
| 2.12.2 | 3.19.0 |
| 2.12.1 | 3.19.0 |
| 2.11.3 | 3.16.1 |
| 2.11.2 | 3.16.1 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ spec:
- mountPath: "/custom-presets/"
name: {{ .Values.presets.name }}-custom-presets-volume
{{- end }}
{{- if .Values.presets.db.useZalandoOperatorDb }}
- name: wait-for-db
image: busybox
command: ['sh', '-c', "until nc -z -v -w30 {{ .Values.presets.db.name }} 5432; do echo 'Waiting for database...'; sleep 5; done"]
{{- end }}
containers:
- name: {{ .Values.presets.name }}
image: {{ .Values.presets.registry }}:{{ default .Chart.AppVersion .Values.versions.presets }}
Expand Down

0 comments on commit bee6c7d

Please sign in to comment.