From f82d2ecdda39f0e473f9d727723bf3d2eca94827 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Tue, 16 Nov 2021 16:06:16 +0100 Subject: [PATCH] fix(postgresql): remove migration scripting and assume postgresql is a breaking change --- charts/dependency/postgresql/Chart.yaml | 2 +- charts/dependency/postgresql/values.yaml | 28 ------------------------ 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/charts/dependency/postgresql/Chart.yaml b/charts/dependency/postgresql/Chart.yaml index e8ed975df9c..d502a66ab5e 100644 --- a/charts/dependency/postgresql/Chart.yaml +++ b/charts/dependency/postgresql/Chart.yaml @@ -22,7 +22,7 @@ name: postgresql sources: - https://www.postgresql.org/ type: application -version: 5.2.2 +version: 6.0.0 annotations: truecharts.org/catagories: | - database diff --git a/charts/dependency/postgresql/values.yaml b/charts/dependency/postgresql/values.yaml index 07c97ea9adf..25a53cb1731 100644 --- a/charts/dependency/postgresql/values.yaml +++ b/charts/dependency/postgresql/values.yaml @@ -24,29 +24,6 @@ controller: # -- ReplicaSet revision history limit 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: readOnlyRootFilesystem: false @@ -66,11 +43,6 @@ podSecurityContext: persistence: db: - enabled: true - mountPath: "/bitnami/postgresql/old" - -volumeClaimTemplates: - data: enabled: true mountPath: "/bitnami/postgresql"