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 ...@@ -2,5 +2,5 @@ apiVersion: v2
name: postgresql name: postgresql
description: Helm Chart for postgresql description: Helm Chart for postgresql
type: application type: application
version: 1.1.0 version: 1.2.0
appVersion: "15.2-alpine" appVersion: "15"
...@@ -44,7 +44,7 @@ spec: ...@@ -44,7 +44,7 @@ spec:
- name: postgresql - name: postgresql
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- 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 }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
...@@ -79,6 +79,7 @@ spec: ...@@ -79,6 +79,7 @@ spec:
volumeMounts: volumeMounts:
- mountPath: "/var/lib/postgresql/data" - mountPath: "/var/lib/postgresql/data"
name: data name: data
subPath: {{ .Chart.AppVersion }}
- mountPath: "/configs" - mountPath: "/configs"
name: config name: config
- mountPath: "/dev/shm" - 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