diff --git a/deploy/helm/grimmory/Chart.yaml b/deploy/helm/grimmory/Chart.yaml index 6177cc124..98d6fcd99 100644 --- a/deploy/helm/grimmory/Chart.yaml +++ b/deploy/helm/grimmory/Chart.yaml @@ -21,5 +21,5 @@ version: 0.1.0 appVersion: "v0.38.2" dependencies: - name: mariadb - version: 22.0.* - repository: oci://registry-1.docker.io/bitnamicharts + version: 0.16.0 + repository: oci://registry-1.docker.io/cloudpirates diff --git a/deploy/helm/grimmory/templates/deployment.yaml b/deploy/helm/grimmory/templates/deployment.yaml index 94355d23e..1481baf20 100644 --- a/deploy/helm/grimmory/templates/deployment.yaml +++ b/deploy/helm/grimmory/templates/deployment.yaml @@ -36,8 +36,8 @@ spec: - /bin/sh - -c - | - echo "Waiting for database on port {{ .Values.mariadb.primary.service.ports.mysql }}..." - until nc -z -v -w5 {{ .Release.Name }}-mariadb {{ .Values.mariadb.primary.service.ports.mysql }}; do + echo "Waiting for database on port {{ .Values.mariadb.service.port }}..." + until nc -z -v -w5 {{ .Release.Name }}-mariadb {{ .Values.mariadb.service.port }}; do echo "Waiting for database..." sleep 2 done @@ -63,7 +63,7 @@ spec: #protocol: TCP env: - name: DATABASE_URL - value: jdbc:mariadb://{{ .Release.Name }}-mariadb:{{ .Values.mariadb.primary.service.ports.mysql }}/{{ .Values.mariadb.auth.database }} + value: jdbc:mariadb://{{ .Release.Name }}-mariadb:{{ .Values.mariadb.service.port }}/{{ .Values.mariadb.auth.database }} - name: DATABASE_USERNAME value: {{ .Values.mariadb.auth.username }} - name: DATABASE_PASSWORD diff --git a/deploy/helm/grimmory/values.yaml b/deploy/helm/grimmory/values.yaml index 16c217600..8e3d5e600 100644 --- a/deploy/helm/grimmory/values.yaml +++ b/deploy/helm/grimmory/values.yaml @@ -5,10 +5,16 @@ mariadb: enabled: true image: - tag: 11.8.3 + tag: 12.2.2 auth: database: grimmory username: grimmory + # existingSecret: mariadb-credentials + # secretKeys: + # rootPasswordKey: mariadb-root-password + # userPasswordKey: mariadb-password + service: + port: 3306 # This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ image: repository: grimmory/grimmory