mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-07-18 04:40:22 +08:00
fix(postgresql): remove migration scripting and assume postgresql is a breaking change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user