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