Removepostgresql migration (#1238)

* remove postgresql migration

* bump
This commit is contained in:
Kjeld Schouten-Lebbing 2021-10-26 12:02:13 +02:00 committed by GitHub
parent 5eaa86d35d
commit 57c433e84a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 35 deletions

View File

@ -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

View File

@ -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"