Skip to content
Snippets Groups Projects
Unverified Commit a8aa4ebe authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: make postgres chart use different storage directories per major version

parent 7dd975ff
No related branches found
No related tags found
No related merge requests found
Pipeline #2976 failed
......@@ -2,5 +2,5 @@ apiVersion: v2
name: postgresql
description: Helm Chart for postgresql
type: application
version: 1.1.0
appVersion: "15.2-alpine"
version: 1.2.0
appVersion: "15"
......@@ -44,7 +44,7 @@ spec:
- name: postgresql
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "%s-alpine" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: POSTGRES_PASSWORD
......@@ -79,6 +79,7 @@ spec:
volumeMounts:
- mountPath: "/var/lib/postgresql/data"
name: data
subPath: {{ .Chart.AppVersion }}
- mountPath: "/configs"
name: config
- mountPath: "/dev/shm"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment