Skip to content

Commit

Permalink
updating postgres-is-ready init container to use the same hostname en…
Browse files Browse the repository at this point in the history
…v var template as the nextcloud container

Signed-off-by: jessebot <[email protected]>
  • Loading branch information
jessebot committed Sep 5, 2023
1 parent ff07aac commit a4c90d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nextcloud/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: nextcloud
version: 4.2.0
version: 4.3.0
appVersion: 27.0.2
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
4 changes: 3 additions & 1 deletion charts/nextcloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,12 @@ spec:
secretKeyRef:
name: {{ .Values.externalDatabase.existingSecret.secretName | default (printf "%s-%s" .Release.Name "db") }}
key: {{ .Values.externalDatabase.existingSecret.usernameKey | default "db-username" }}
- name: POSTGRES_HOST
value: {{ template "postgresql.primary.fullname" .Subcharts.postgresql }}
command:
- "sh"
- "-c"
- {{ printf "until pg_isready -h %s-postgresql -U ${POSTGRES_USER} ; do sleep 2 ; done" .Release.Name }}
- {{ printf "until pg_isready -h ${POSTGRES_HOST} -U ${POSTGRES_USER} ; do sleep 2 ; done" }}
{{- end }}
{{- end }}
{{- with .Values.affinity }}
Expand Down

0 comments on commit a4c90d9

Please sign in to comment.