Removepostgresql migration (#1238)
* remove postgresql migration * bump
This commit is contained in:
parent
5eaa86d35d
commit
57c433e84a
|
@ -18,14 +18,11 @@ maintainers:
|
|||
- email: info@truecharts.org
|
||||
name: TrueCharts
|
||||
url: truecharts.org
|
||||
- email: kjeld@schouten-lebbing.nl
|
||||
name: Ornias1993
|
||||
url: truecharts.org
|
||||
name: postgresql
|
||||
sources:
|
||||
- https://www.postgresql.org/
|
||||
type: application
|
||||
version: 4.1.0
|
||||
version: 5.1.0
|
||||
annotations:
|
||||
truecharts.org/catagories: |
|
||||
- database
|
||||
|
|
|
@ -16,30 +16,6 @@ service:
|
|||
## TODO: Fix the backup-on-upgrade system
|
||||
enableUpgradeBackup: false
|
||||
|
||||
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/data/ || true
|
||||
chown -R {{ .Values.podSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} /bitnami/postgresql/data
|
||||
chmod 775 /bitnami/postgresql/data
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: db
|
||||
mountPath: /bitnami/postgresql
|
||||
- name: data
|
||||
mountPath: /bitnami/postgresql/old
|
||||
|
||||
podSecurityContext:
|
||||
runAsGroup: 0
|
||||
|
||||
|
@ -50,13 +26,6 @@ persistence:
|
|||
type: pvc
|
||||
accessMode: ReadWriteOnce
|
||||
size: "999Gi"
|
||||
data:
|
||||
enabled: true
|
||||
mountPath: "/bitnami/postgresql/old"
|
||||
type: pvc
|
||||
accessMode: ReadWriteOnce
|
||||
size: "999Gi"
|
||||
storageClass: "-"
|
||||
|
||||
postgresqlPassword: "testpass"
|
||||
postgresqlUsername: "test"
|
||||
|
|
Loading…
Reference in New Issue