diff --git a/stable/postgresql/5.0.0/CHANGELOG.md b/stable/postgresql/5.1.0/CHANGELOG.md
similarity index 82%
rename from stable/postgresql/5.0.0/CHANGELOG.md
rename to stable/postgresql/5.1.0/CHANGELOG.md
index 53c4808fd64..622a546cb50 100644
--- a/stable/postgresql/5.0.0/CHANGELOG.md
+++ b/stable/postgresql/5.1.0/CHANGELOG.md
@@ -1,6 +1,20 @@
# Changelog
+
+### [postgresql-5.1.0](https://github.com/truecharts/apps/compare/postgresql-4.1.0...postgresql-5.1.0) (2021-10-26)
+
+
+
+
+### [postgresql-4.1.0](https://github.com/truecharts/apps/compare/postgresql-5.0.0...postgresql-4.1.0) (2021-10-26)
+
+#### Fix
+
+* fix migration scripting for new major
+
+
+
### [postgresql-5.0.0](https://github.com/truecharts/apps/compare/postgresql-4.0.3...postgresql-5.0.0) (2021-10-25)
@@ -83,17 +97,3 @@
-
-### [postgresql-3.0.19](https://github.com/truecharts/apps/compare/postgresql-3.0.18...postgresql-3.0.19) (2021-10-19)
-
-#### Chore
-
-* Add description on persistence ([#1172](https://github.com/truecharts/apps/issues/1172))
-
-#### Fix
-
-* Solve issues regarding ix_values.yaml not containing the image and tag definitions. ([#1176](https://github.com/truecharts/apps/issues/1176))
-
-#### Refactor
-
-* Project Eclipse - part 1 - remove ix_values.yaml ([#1168](https://github.com/truecharts/apps/issues/1168))
diff --git a/stable/postgresql/5.0.0/CONFIG.md b/stable/postgresql/5.1.0/CONFIG.md
similarity index 100%
rename from stable/postgresql/5.0.0/CONFIG.md
rename to stable/postgresql/5.1.0/CONFIG.md
diff --git a/stable/postgresql/5.0.0/Chart.lock b/stable/postgresql/5.1.0/Chart.lock
similarity index 78%
rename from stable/postgresql/5.0.0/Chart.lock
rename to stable/postgresql/5.1.0/Chart.lock
index a45dfb6a120..d7fd93eb49f 100644
--- a/stable/postgresql/5.0.0/Chart.lock
+++ b/stable/postgresql/5.1.0/Chart.lock
@@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org
version: 8.3.14
digest: sha256:2278950106e480dac22f26c75bdff4cffbc2d5262a24692f160c3bfa37bda367
-generated: "2021-10-25T11:51:35.127441956Z"
+generated: "2021-10-26T10:03:36.689796943Z"
diff --git a/stable/postgresql/5.0.0/Chart.yaml b/stable/postgresql/5.1.0/Chart.yaml
similarity index 88%
rename from stable/postgresql/5.0.0/Chart.yaml
rename to stable/postgresql/5.1.0/Chart.yaml
index 7e23b633d7a..8543fa599ad 100644
--- a/stable/postgresql/5.0.0/Chart.yaml
+++ b/stable/postgresql/5.1.0/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: 5.0.0
+version: 5.1.0
annotations:
truecharts.org/catagories: |
- database
diff --git a/stable/postgresql/5.0.0/README.md b/stable/postgresql/5.1.0/README.md
similarity index 100%
rename from stable/postgresql/5.0.0/README.md
rename to stable/postgresql/5.1.0/README.md
diff --git a/stable/postgresql/5.0.0/app-readme.md b/stable/postgresql/5.1.0/app-readme.md
similarity index 100%
rename from stable/postgresql/5.0.0/app-readme.md
rename to stable/postgresql/5.1.0/app-readme.md
diff --git a/stable/postgresql/5.0.0/charts/common-8.3.14.tgz b/stable/postgresql/5.1.0/charts/common-8.3.14.tgz
similarity index 100%
rename from stable/postgresql/5.0.0/charts/common-8.3.14.tgz
rename to stable/postgresql/5.1.0/charts/common-8.3.14.tgz
diff --git a/stable/postgresql/5.0.0/helm-values.md b/stable/postgresql/5.1.0/helm-values.md
similarity index 54%
rename from stable/postgresql/5.0.0/helm-values.md
rename to stable/postgresql/5.1.0/helm-values.md
index ab84972c3ce..c9e35ba1d35 100644
--- a/stable/postgresql/5.0.0/helm-values.md
+++ b/stable/postgresql/5.1.0/helm-values.md
@@ -20,27 +20,9 @@ You will, however, be able to use all values referenced in the common chart here
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"bitnami/postgresql"` | |
| image.tag | string | `"13.4.0@sha256:6ae26c46c20358fb2889a759d11d237b1d6d5f73ba206ef3d66f95448a859382"` | |
-| initContainers.migrate-db.command[0] | string | `"/bin/sh"` | |
-| initContainers.migrate-db.command[1] | string | `"-cx"` | |
-| initContainers.migrate-db.command[2] | string | `"echo 'trying to migrate old db to new location...'\nmkdir -p /bitnami/postgresql/data\nmv -f /bitnami/postgresql/old/* /bitnami/postgresql/data/ || true\nchown -R {{ .Values.podSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} /bitnami/postgresql/data\nchmod 775 /bitnami/postgresql/data\n"` | |
-| initContainers.migrate-db.image | string | `"{{ .Values.alpineImage.repository}}:{{ .Values.alpineImage.tag }}"` | |
-| initContainers.migrate-db.imagePullPolicy | string | `"IfNotPresent"` | |
-| initContainers.migrate-db.securityContext.privileged | bool | `true` | |
-| initContainers.migrate-db.securityContext.runAsNonRoot | bool | `false` | |
-| initContainers.migrate-db.securityContext.runAsUser | int | `0` | |
-| initContainers.migrate-db.volumeMounts[0].mountPath | string | `"/bitnami/postgresql"` | |
-| initContainers.migrate-db.volumeMounts[0].name | string | `"db"` | |
-| initContainers.migrate-db.volumeMounts[1].mountPath | string | `"/bitnami/postgresql/old"` | |
-| initContainers.migrate-db.volumeMounts[1].name | string | `"data"` | |
-| persistence.data.accessMode | string | `"ReadWriteOnce"` | |
-| persistence.data.enabled | bool | `true` | |
-| persistence.data.mountPath | string | `"/bitnami/postgresql"` | |
-| persistence.data.size | string | `"999Gi"` | |
-| persistence.data.storageClass | string | `"-"` | |
-| persistence.data.type | string | `"pvc"` | |
| persistence.db.accessMode | string | `"ReadWriteOnce"` | |
| persistence.db.enabled | bool | `true` | |
-| persistence.db.mountPath | string | `"/bitnami/postgresql/old"` | |
+| persistence.db.mountPath | string | `"/bitnami/postgresql"` | |
| persistence.db.size | string | `"999Gi"` | |
| persistence.db.type | string | `"pvc"` | |
| podSecurityContext.runAsGroup | int | `0` | |
diff --git a/stable/postgresql/5.0.0/ix_values.yaml b/stable/postgresql/5.1.0/ix_values.yaml
similarity index 53%
rename from stable/postgresql/5.0.0/ix_values.yaml
rename to stable/postgresql/5.1.0/ix_values.yaml
index f1e0daaa5c3..65097e6f6af 100644
--- a/stable/postgresql/5.0.0/ix_values.yaml
+++ b/stable/postgresql/5.1.0/ix_values.yaml
@@ -16,47 +16,16 @@ 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
persistence:
db:
- enabled: true
- mountPath: "/bitnami/postgresql/old"
- type: pvc
- accessMode: ReadWriteOnce
- size: "999Gi"
- data:
enabled: true
mountPath: "/bitnami/postgresql"
type: pvc
accessMode: ReadWriteOnce
size: "999Gi"
- storageClass: "-"
postgresqlPassword: "testpass"
postgresqlUsername: "test"
diff --git a/stable/postgresql/5.0.0/questions.yaml b/stable/postgresql/5.1.0/questions.yaml
similarity index 100%
rename from stable/postgresql/5.0.0/questions.yaml
rename to stable/postgresql/5.1.0/questions.yaml
diff --git a/stable/postgresql/5.0.0/templates/backup-postgres-config.yaml b/stable/postgresql/5.1.0/templates/backup-postgres-config.yaml
similarity index 100%
rename from stable/postgresql/5.0.0/templates/backup-postgres-config.yaml
rename to stable/postgresql/5.1.0/templates/backup-postgres-config.yaml
diff --git a/stable/postgresql/5.0.0/templates/common.yaml b/stable/postgresql/5.1.0/templates/common.yaml
similarity index 100%
rename from stable/postgresql/5.0.0/templates/common.yaml
rename to stable/postgresql/5.1.0/templates/common.yaml
diff --git a/stable/postgresql/5.0.0/templates/secret.yaml b/stable/postgresql/5.1.0/templates/secret.yaml
similarity index 100%
rename from stable/postgresql/5.0.0/templates/secret.yaml
rename to stable/postgresql/5.1.0/templates/secret.yaml
diff --git a/stable/postgresql/5.0.0/templates/upgrade-backup-postgres-hook.yaml b/stable/postgresql/5.1.0/templates/upgrade-backup-postgres-hook.yaml
similarity index 100%
rename from stable/postgresql/5.0.0/templates/upgrade-backup-postgres-hook.yaml
rename to stable/postgresql/5.1.0/templates/upgrade-backup-postgres-hook.yaml
diff --git a/stable/postgresql/5.0.0/values.yaml b/stable/postgresql/5.1.0/values.yaml
similarity index 100%
rename from stable/postgresql/5.0.0/values.yaml
rename to stable/postgresql/5.1.0/values.yaml