diff --git a/postgresql/Chart.yaml b/postgresql/Chart.yaml index df85d3739351880855ca50bf0930eba81aa00eac..06c60145a4036f92face5f6b73d98887be0d7c71 100644 --- a/postgresql/Chart.yaml +++ b/postgresql/Chart.yaml @@ -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" diff --git a/postgresql/templates/statefulset.yaml b/postgresql/templates/statefulset.yaml index 04e6d682a96d6827d6f114ee2f541fcbbad77474..f1cc90f4c11f23bfdae13d362d6e23c042efadf8 100644 --- a/postgresql/templates/statefulset.yaml +++ b/postgresql/templates/statefulset.yaml @@ -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"