fix(postgresql): remove migration scripting and assume postgresql is a breaking change
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user