From 12611e2127828df4633d1f05ac66fecdf1f21e1d Mon Sep 17 00:00:00 2001 From: Marcos Bjoerkelund Date: Wed, 17 Jul 2019 17:24:11 +0200 Subject: [PATCH 1/5] Update Harbor requirements to use latest chart releases --- bitnami/harbor/Chart.yaml | 2 +- bitnami/harbor/requirements.lock | 8 ++++---- bitnami/harbor/requirements.yaml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bitnami/harbor/Chart.yaml b/bitnami/harbor/Chart.yaml index b5d2438b3..f9a449b67 100644 --- a/bitnami/harbor/Chart.yaml +++ b/bitnami/harbor/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: harbor -version: 1.0.0 +version: 2.0.0 appVersion: 1.8.1 description: Harbor is an an open source trusted cloud native registry project that stores, signs, and scans content keywords: diff --git a/bitnami/harbor/requirements.lock b/bitnami/harbor/requirements.lock index 305b57e48..1722a23a0 100644 --- a/bitnami/harbor/requirements.lock +++ b/bitnami/harbor/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: postgresql repository: https://charts.bitnami.com/bitnami - version: 4.2.2 + version: 5.3.13 - name: redis repository: https://charts.bitnami.com/bitnami - version: 7.1.1 -digest: sha256:df803216464c2e9422e4a97214aad873cc91214543ab8eb399da8005db862a95 -generated: 2019-07-16T07:41:20.282446269Z + version: 8.1.3 +digest: sha256:a4b2cebc9661bcabbe4c453ee4567fdb80e44d181503e5ea7150815985890c1a +generated: "2019-07-17T17:15:16.993875408+02:00" diff --git a/bitnami/harbor/requirements.yaml b/bitnami/harbor/requirements.yaml index 33999c441..af97c573f 100644 --- a/bitnami/harbor/requirements.yaml +++ b/bitnami/harbor/requirements.yaml @@ -1,9 +1,9 @@ dependencies: - name: postgresql - version: 4.x.x + version: 5.x.x repository: https://charts.bitnami.com/bitnami condition: postgresql.enabled - name: redis - version: 7.x.x + version: 8.x.x repository: https://charts.bitnami.com/bitnami condition: redis.enabled From 1f639644c28b400d208eb8239d5f7552618a6aa3 Mon Sep 17 00:00:00 2001 From: Marcos Bjoerkelund Date: Thu, 18 Jul 2019 09:37:38 +0200 Subject: [PATCH 2/5] fix default admin password in README --- bitnami/harbor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/harbor/README.md b/bitnami/harbor/README.md index f4ecae425..9e7520e01 100644 --- a/bitnami/harbor/README.md +++ b/bitnami/harbor/README.md @@ -153,7 +153,7 @@ The following table lists the configurable parameters of the Harbor chart and th | `imagePullPolicy` | The image pull policy | `IfNotPresent` | | `logLevel` | The log level | `debug` | | `forcePassword` | Option to ensure all passwords and keys are set by the user | `false` | -| `harborAdminPassword` | The initial password of Harbor admin. Change it from portal after launching Harbor | `Harbor12345` | +| `harborAdminPassword` | The initial password of Harbor admin. Change it from portal after launching Harbor | _random 10 character long alphanumeric string_ | | `secretkey` | The key used for encryption. Must be a string of 16 chars | `not-a-secure-key` | | **Nginx** (if expose the service via `ingress`, the Nginx will not be used) | | `nginxImage.registry` | Registry for Nginx image | `docker.io` | From 3756833c47704e6a05353a8b6ab5d2aaeea925bf Mon Sep 17 00:00:00 2001 From: Marcos Bjoerkelund Date: Thu, 18 Jul 2019 16:37:39 +0200 Subject: [PATCH 3/5] update postgresql dependency --- bitnami/harbor/requirements.lock | 8 ++++---- bitnami/harbor/requirements.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitnami/harbor/requirements.lock b/bitnami/harbor/requirements.lock index 1722a23a0..a535b363f 100644 --- a/bitnami/harbor/requirements.lock +++ b/bitnami/harbor/requirements.lock @@ -1,9 +1,9 @@ dependencies: - name: postgresql repository: https://charts.bitnami.com/bitnami - version: 5.3.13 + version: 6.0.0 - name: redis repository: https://charts.bitnami.com/bitnami - version: 8.1.3 -digest: sha256:a4b2cebc9661bcabbe4c453ee4567fdb80e44d181503e5ea7150815985890c1a -generated: "2019-07-17T17:15:16.993875408+02:00" + version: 8.1.4 +digest: sha256:ede675b32be35e162fd579435285659a802d0dbf0c79827200cbc621f7414e64 +generated: "2019-07-18T16:37:15.162736169+02:00" diff --git a/bitnami/harbor/requirements.yaml b/bitnami/harbor/requirements.yaml index af97c573f..50cbf6b7d 100644 --- a/bitnami/harbor/requirements.yaml +++ b/bitnami/harbor/requirements.yaml @@ -1,6 +1,6 @@ dependencies: - name: postgresql - version: 5.x.x + version: 6.x.x repository: https://charts.bitnami.com/bitnami condition: postgresql.enabled - name: redis From 828d2d5738969e15e188345542287314822d5379 Mon Sep 17 00:00:00 2001 From: Marcos Bjoerkelund Date: Thu, 18 Jul 2019 17:45:54 +0200 Subject: [PATCH 4/5] Add postgresql upgrade notice --- bitnami/harbor/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/bitnami/harbor/README.md b/bitnami/harbor/README.md index 9e7520e01..8820f0bb8 100644 --- a/bitnami/harbor/README.md +++ b/bitnami/harbor/README.md @@ -347,3 +347,36 @@ This chart includes a `values-production.yaml` file where you can find some para It is strongly recommended to use immutable tags in a production environment. This ensures your deployment does not change automatically if the same tag is updated with a different image. Bitnami will release a new chart updating its containers if a new version of the main container, significant changes, or critical vulnerabilities exist. + +## Upgrade + +## 2.0.0 + +In this version, this **chart depends on PostgreSQL 11 instead of PostgreSQL 10**. You can find the main difference and notable changes in the following links: [https://www.postgresql.org/about/news/1894/](https://www.postgresql.org/about/news/1894/) and [https://www.postgresql.org/about/featurematrix/](https://www.postgresql.org/about/featurematrix/). + +For major releases of PostgreSQL, the internal data storage format is subject to change, thus complicating upgrades, you can see some errors like the following one in the logs: + +```bash +Welcome to the Bitnami postgresql container +Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-postgresql +Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-postgresql/issues +Send us your feedback at containers@bitnami.com + +INFO ==> ** Starting PostgreSQL setup ** +NFO ==> Validating settings in POSTGRESQL_* env vars.. +INFO ==> Initializing PostgreSQL database... +INFO ==> postgresql.conf file not detected. Generating it... +INFO ==> pg_hba.conf file not detected. Generating it... +INFO ==> Deploying PostgreSQL with persisted data... +INFO ==> Configuring replication parameters +INFO ==> Loading custom scripts... +INFO ==> Enabling remote connections +INFO ==> Stopping PostgreSQL... +INFO ==> ** PostgreSQL setup finished! ** + +INFO ==> ** Starting PostgreSQL ** + [1] FATAL: database files are incompatible with server + [1] DETAIL: The data directory was initialized by PostgreSQL version 10, which is not compatible with this version 11.3. +``` + +In this case, you should migrate the data from the old PostgreSQL chart to the new one following an approach similar to that described in [this section](https://www.postgresql.org/docs/current/upgrading.html#UPGRADING-VIA-PGDUMPALL) from the official documentation. Basically, create a database dump in the old chart, move and restore it in the new one. From ea9815b443f4afa60ca1b21f9abe03e90a001a1d Mon Sep 17 00:00:00 2001 From: Marcos Bjoerkelund Date: Fri, 19 Jul 2019 16:37:16 +0200 Subject: [PATCH 5/5] add redis upgrade notice --- bitnami/harbor/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bitnami/harbor/README.md b/bitnami/harbor/README.md index c73fcf64a..0d0085622 100644 --- a/bitnami/harbor/README.md +++ b/bitnami/harbor/README.md @@ -354,7 +354,10 @@ Bitnami will release a new chart updating its containers if a new version of the ## 2.0.0 -In this version, this **chart depends on PostgreSQL 11 instead of PostgreSQL 10**. You can find the main difference and notable changes in the following links: [https://www.postgresql.org/about/news/1894/](https://www.postgresql.org/about/news/1894/) and [https://www.postgresql.org/about/featurematrix/](https://www.postgresql.org/about/featurematrix/). +In this version, two major changes were performed: + +- This **chart depends on the Redis 5 chart instead of Redis 4**. There is a breaking change that will affect releases with `metrics.enabled: true`, since the default tag for the exporter image is now `v1.x.x`. This introduces many changes including metrics names. You'll want to use [this dashboard](https://github.com/oliver006/redis_exporter/blob/master/contrib/grafana_prometheus_redis_dashboard.json) now. Please see the [redis_exporter github page](https://github.com/oliver006/redis_exporter#upgrading-from-0x-to-1x) for more details. +- This **chart depends on the PostgreSQL 11 chart instead of PostgreSQL 10**. You can find the main difference and notable changes in the following links: [https://www.postgresql.org/about/news/1894/](https://www.postgresql.org/about/news/1894/) and [https://www.postgresql.org/about/featurematrix/](https://www.postgresql.org/about/featurematrix/). For major releases of PostgreSQL, the internal data storage format is subject to change, thus complicating upgrades, you can see some errors like the following one in the logs: