Skip to content

Commit

Permalink
Merge pull request #67 from wikoion/master
Browse files Browse the repository at this point in the history
Added initContainer to fix mariadb initial connection failing
  • Loading branch information
tvories authored Feb 16, 2021
2 parents 2b82a0d + 78fbba9 commit 64276b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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: 2.5.4
version: 2.5.5
appVersion: 19.0.3
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
Expand Down
9 changes: 9 additions & 0 deletions charts/nextcloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,15 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.mariadb.enabled }}
initContainers:
- name: mariadb-isalive
image: bitnami/mariadb
command:
- "sh"
- "-c"
- {{ printf "until mysql --host=%s-mariadb --user=%s --password=%s --execute=\"SELECT 1;\"; do echo waiting for mysql; sleep 2; done;" .Release.Name .Values.mariadb.db.user .Values.mariadb.db.password }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit 64276b7

Please sign in to comment.