Skip to content

Commit

Permalink
fixed: postgresql password error
Browse files Browse the repository at this point in the history
1. the-psql-password base64 encode should be `dGhlLXBzcWwtcGFzc3dvcmQ=` not `dGhlLXBzcWwtcGFzc3dvcmQK`
2. new bitnami/postgresql admin password config string is `auth.postgresPassword`

Signed-off-by: colin <kunyao.li@matrixport.com>
  • Loading branch information
colinlabs authored and bitsf committed Jun 15, 2022
1 parent bfe5f35 commit 65a72ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/installation/customize-storage-db-redis.md
Expand Up @@ -13,7 +13,7 @@ For customizing the storage spec, you can directly follow the [CRD spec](../CRD/
Harbor uses PostgreSQL as its database to store the related metadata. You can create a database instance from your cloud provider or pre-install a PostgreSQL on your resources. e.g.:

```shell
helm upgrade --install harbor-database bitnami/postgresql --version 10.14.3 --set-string initdbScriptsConfigMap=harbor-init-db --set-string postgresqlPassword=the-psql-password --set-string image.registry=ghcr.io --set-string image.repository=goharbor/postgresql
helm upgrade --install harbor-database bitnami/postgresql --version 10.14.3 --set-string initdbScriptsConfigMap=harbor-init-db --set-string auth.postgresPassword=the-psql-password --set-string image.registry=ghcr.io --set-string image.repository=goharbor/postgresql
```

Here the `initdbScriptsConfigMap` is pointing to a `configMap` used to initialize the databases. e.g.:
Expand Down Expand Up @@ -44,7 +44,7 @@ metadata:
sample: "true"
name: harbor-database-password
data:
postgresql-password: dGhlLXBzcWwtcGFzc3dvcmQK
postgresql-password: dGhlLXBzcWwtcGFzc3dvcmQ=
type: goharbor.io/postgresql
```

Expand Down

0 comments on commit 65a72ea

Please sign in to comment.