From 57c433e84a4a58addccb09ed2321579db02bec2c Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Tue, 26 Oct 2021 12:02:13 +0200 Subject: [PATCH] Removepostgresql migration (#1238) * remove postgresql migration * bump --- charts/stable/postgresql/Chart.yaml | 5 +---- charts/stable/postgresql/values.yaml | 31 ---------------------------- 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/charts/stable/postgresql/Chart.yaml b/charts/stable/postgresql/Chart.yaml index 98ffb486351..8543fa599ad 100644 --- a/charts/stable/postgresql/Chart.yaml +++ b/charts/stable/postgresql/Chart.yaml @@ -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 diff --git a/charts/stable/postgresql/values.yaml b/charts/stable/postgresql/values.yaml index b9700ba7132..65097e6f6af 100644 --- a/charts/stable/postgresql/values.yaml +++ b/charts/stable/postgresql/values.yaml @@ -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"