From 637c5f60f6e9225beeaf8bc9b870cacc5ae80851 Mon Sep 17 00:00:00 2001 From: Amith Kumar A Date: Wed, 24 Jun 2020 19:54:04 +0530 Subject: [PATCH] Upgrade postgres version to 10.x --- stable/artifactory-ha/CHANGELOG.md | 6 ++++++ stable/artifactory-ha/Chart.yaml | 2 +- .../templates/artifactory-primary-statefulset.yaml | 3 +++ stable/artifactory-ha/values.yaml | 2 +- stable/artifactory/CHANGELOG.md | 6 ++++++ stable/artifactory/Chart.yaml | 2 +- stable/artifactory/templates/artifactory-statefulset.yaml | 3 +++ stable/artifactory/values.yaml | 2 +- 8 files changed, 22 insertions(+), 4 deletions(-) diff --git a/stable/artifactory-ha/CHANGELOG.md b/stable/artifactory-ha/CHANGELOG.md index 37cbdb3f2..1c44b11f1 100644 --- a/stable/artifactory-ha/CHANGELOG.md +++ b/stable/artifactory-ha/CHANGELOG.md @@ -1,6 +1,12 @@ # JFrog Artifactory-ha Chart Changelog All changes to this chart will be documented in this file. +## [3.0.0] - Jun 24, 2020 +* Update postgresql tag version to `10.13.0-debian-10-r38` +**IMPORTANT**
+* If this is a new deployment or you already use an external database (`postgresql.enabled=false`), these changes **do not affect you**! +* If this is an upgrade and you are using the default PostgreSQL (`postgresql.enabled=true`), you need to pass postgresql.image.tag=9.6.18-debian-10-r7 and databaseUpgradeReady=yes + ## [2.5.7] - Jun 18, 2020 * Fixes bootstrap configMap issue on member node diff --git a/stable/artifactory-ha/Chart.yaml b/stable/artifactory-ha/Chart.yaml index 4310af69b..2123b8f84 100644 --- a/stable/artifactory-ha/Chart.yaml +++ b/stable/artifactory-ha/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: artifactory-ha home: https://www.jfrog.com/artifactory/ -version: 2.5.7 +version: 3.0.0 appVersion: 7.5.7 description: Universal Repository Manager supporting all major packaging formats, build tools and CI servers. diff --git a/stable/artifactory-ha/templates/artifactory-primary-statefulset.yaml b/stable/artifactory-ha/templates/artifactory-primary-statefulset.yaml index 73b4b0df4..123977039 100644 --- a/stable/artifactory-ha/templates/artifactory-primary-statefulset.yaml +++ b/stable/artifactory-ha/templates/artifactory-primary-statefulset.yaml @@ -12,6 +12,9 @@ metadata: {{- if .Values.artifactory.primary.labels }} {{ toYaml .Values.artifactory.primary.labels | indent 4 }} {{- end }} +{{- if and .Release.IsUpgrade .Values.postgresql.enabled }} + databaseUpgradeReady: {{ required "\n\n*********\nIMPORTANT: UPGRADE STOPPED to prevent data loss!\nReview CHANGELOG.md (https://github.com/jfrog/charts/blob/master/stable/artifactory/CHANGELOG.md), pass postgresql.image.tag=9.6.18-debian-10-r7 and databaseUpgradeReady=yes if you are upgrading from chart version which has postgresql version 9.6.x." | quote }} +{{- end }} spec: serviceName: {{ template "artifactory-ha.primary.name" . }} replicas: 1 diff --git a/stable/artifactory-ha/values.yaml b/stable/artifactory-ha/values.yaml index 7b856d433..56d089f4e 100644 --- a/stable/artifactory-ha/values.yaml +++ b/stable/artifactory-ha/values.yaml @@ -102,7 +102,7 @@ postgresql: image: registry: docker.bintray.io repository: bitnami/postgresql - tag: 9.6.18-debian-10-r7 + tag: 10.13.0-debian-10-r38 postgresqlUsername: artifactory postgresqlPassword: "" postgresqlDatabase: artifactory diff --git a/stable/artifactory/CHANGELOG.md b/stable/artifactory/CHANGELOG.md index a75a8633d..4aaead2eb 100644 --- a/stable/artifactory/CHANGELOG.md +++ b/stable/artifactory/CHANGELOG.md @@ -1,6 +1,12 @@ # JFrog Artifactory Chart Changelog All changes to this chart will be documented in this file. +## [10.0.0] - Jun 24, 2020 +* Update postgresql tag version to `10.13.0-debian-10-r38` +**IMPORTANT**
+* If this is a new deployment or you already use an external database (`postgresql.enabled=false`), these changes **do not affect you**! +* If this is an upgrade and you are using the default PostgreSQL (`postgresql.enabled=true`), you need to pass postgresql.image.tag=9.6.18-debian-10-r7 and databaseUpgradeReady=yes + ## [9.5.3] - Jun 11, 2020 * Support list of custom secrets diff --git a/stable/artifactory/Chart.yaml b/stable/artifactory/Chart.yaml index 58a4558b1..16704e0a7 100644 --- a/stable/artifactory/Chart.yaml +++ b/stable/artifactory/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: artifactory home: https://www.jfrog.com/artifactory/ -version: 9.5.3 +version: 10.0.0 appVersion: 7.5.7 description: Universal Repository Manager supporting all major packaging formats, build tools and CI servers. diff --git a/stable/artifactory/templates/artifactory-statefulset.yaml b/stable/artifactory/templates/artifactory-statefulset.yaml index 5cda8f790..bf1537f24 100644 --- a/stable/artifactory/templates/artifactory-statefulset.yaml +++ b/stable/artifactory/templates/artifactory-statefulset.yaml @@ -11,6 +11,9 @@ metadata: {{- if .Values.artifactory.labels }} {{ toYaml .Values.artifactory.labels | indent 4 }} {{- end }} +{{- if and .Release.IsUpgrade .Values.postgresql.enabled }} + databaseUpgradeReady: {{ required "\n\n*********\nIMPORTANT: UPGRADE STOPPED to prevent data loss!\nReview CHANGELOG.md (https://github.com/jfrog/charts/blob/master/stable/artifactory/CHANGELOG.md), pass postgresql.image.tag=9.6.18-debian-10-r7 and databaseUpgradeReady=yes if you are upgrading from chart version which has postgresql version 9.6.x." | quote }} +{{- end }} spec: serviceName: {{ template "artifactory.name" . }} replicas: 1 diff --git a/stable/artifactory/values.yaml b/stable/artifactory/values.yaml index 726d260d2..545d05dd4 100644 --- a/stable/artifactory/values.yaml +++ b/stable/artifactory/values.yaml @@ -1117,7 +1117,7 @@ postgresql: image: registry: docker.bintray.io repository: bitnami/postgresql - tag: 9.6.18-debian-10-r7 + tag: 10.13.0-debian-10-r38 postgresqlUsername: artifactory postgresqlPassword: "" postgresqlDatabase: artifactory