fix(postgresql): remove migration scripting and assume postgresql is a breaking change

This commit is contained in:
kjeld Schouten-Lebbing
2021-11-16 16:06:16 +01:00
parent 205f514e1b
commit f82d2ecdda
2 changed files with 1 additions and 29 deletions

View File

@@ -22,7 +22,7 @@ name: postgresql
sources:
- https://www.postgresql.org/
type: application
version: 5.2.2
version: 6.0.0
annotations:
truecharts.org/catagories: |
- database

View File

@@ -24,29 +24,6 @@ controller:
# -- ReplicaSet revision history limit
revisionHistoryLimit: 3
initContainers:
migrate-db:
image: "{{ .Values.alpineImage.repository}}:{{ .Values.alpineImage.tag }}"
securityContext:
runAsUser: 0
privileged: true
runAsNonRoot: false
command:
- /bin/sh
- -cx
- |
echo 'trying to migrate old db to new location...'
mkdir -p /bitnami/postgresql/data
mv -f /bitnami/postgresql/old/* /bitnami/postgresql/ || true
chown -R {{ .Values.podSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} /bitnami/postgresql/
chmod 775 /bitnami/postgresql/
imagePullPolicy: IfNotPresent
volumeMounts:
- name: db
mountPath: /bitnami/postgresql/old
- name: data
mountPath: /bitnami/postgresql
securityContext:
readOnlyRootFilesystem: false
@@ -66,11 +43,6 @@ podSecurityContext:
persistence:
db:
enabled: true
mountPath: "/bitnami/postgresql/old"
volumeClaimTemplates:
data:
enabled: true
mountPath: "/bitnami/postgresql"