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
+1 -1
View File
@@ -22,7 +22,7 @@ name: postgresql
sources: sources:
- https://www.postgresql.org/ - https://www.postgresql.org/
type: application type: application
version: 5.2.2 version: 6.0.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- database - database
-28
View File
@@ -24,29 +24,6 @@ controller:
# -- ReplicaSet revision history limit # -- ReplicaSet revision history limit
revisionHistoryLimit: 3 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: securityContext:
readOnlyRootFilesystem: false readOnlyRootFilesystem: false
@@ -66,11 +43,6 @@ podSecurityContext:
persistence: persistence:
db: db:
enabled: true
mountPath: "/bitnami/postgresql/old"
volumeClaimTemplates:
data:
enabled: true enabled: true
mountPath: "/bitnami/postgresql" mountPath: "/bitnami/postgresql"