From d97db5482ee6e2e9eba1756a37b8c58661c326ab Mon Sep 17 00:00:00 2001 From: WrenIX Date: Thu, 27 Feb 2025 10:54:40 +0100 Subject: [PATCH] fix(postgresql): add global (and improve docs) --- postgresql/Chart.yaml | 2 +- postgresql/README.md | 10 +++++----- postgresql/ci/ct-values.yaml | 6 +++--- postgresql/values.yaml | 5 ++++- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/postgresql/Chart.yaml b/postgresql/Chart.yaml index 91e9ade..1597f80 100644 --- a/postgresql/Chart.yaml +++ b/postgresql/Chart.yaml @@ -4,7 +4,7 @@ name: "postgresql" description: "A Helm chart for running PostgreSQL (Postgres) database" icon: https://wiki.postgresql.org/images/a/a4/PostgreSQL_logo.3colors.svg type: "application" -version: "0.2.5" +version: "0.2.6" # renovate: image=docker.io/library/postgres appVersion: "17.4-alpine" maintainers: diff --git a/postgresql/README.md b/postgresql/README.md index dc3a9e6..3b3dd88 100644 --- a/postgresql/README.md +++ b/postgresql/README.md @@ -7,7 +7,7 @@ description: "A Helm chart for running PostgreSQL (Postgres) database" # postgresql -![Version: 0.2.5](https://img.shields.io/badge/Version-0.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 17.4-alpine](https://img.shields.io/badge/AppVersion-17.4--alpine-informational?style=flat-square) +![Version: 0.2.6](https://img.shields.io/badge/Version-0.2.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 17.4-alpine](https://img.shields.io/badge/AppVersion-17.4--alpine-informational?style=flat-square) A Helm chart for running PostgreSQL (Postgres) database @@ -53,10 +53,10 @@ helm uninstall postgresql-release | fullnameOverride | string | `""` | | | global.image.pullPolicy | string | `nil` | if set it will overwrite all pullPolicy | | global.image.registry | string | `nil` | if set it will overwrite all registry entries | -| image.pullPolicy | string | `"IfNotPresent"` | | -| image.registry | string | `"docker.io"` | | -| image.repository | string | `"library/postgres"` | | -| image.tag | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | This sets the pull policy for images. (could be overwritten by global.image.pullPolicy) | +| image.registry | string | `"docker.io"` | image registry (could be overwritten by global.image.registry) | +| image.repository | string | `"library/postgres"` | image repository | +| image.tag | string | `""` | image tag - Overrides the image tag whose default is the chart appVersion. | | imagePullSecrets | list | `[]` | | | job.annotations | object | `{"helm.sh/hook":"post-install,post-upgrade","helm.sh/hook-delete-policy":"before-hook-creation,hook-succeeded"}` | Annotations (usefull to delete job by helm afterwards) | | job.databases | object | `{}` | Bootstrap databases into postgresql server. When databases already exists, they will stay untouched. databases: "name_of_database": owner: "existing_user_which_will_get_grant" additionalParams: "" # Optional | diff --git a/postgresql/ci/ct-values.yaml b/postgresql/ci/ct-values.yaml index 26e5e8e..8e86464 100644 --- a/postgresql/ci/ct-values.yaml +++ b/postgresql/ci/ct-values.yaml @@ -3,6 +3,6 @@ job: user-name: "RandomPassword0#" databases: - "name_of_database": - owner: "existing_user_which_will_get_grant" - additionalParams: "" + "name_of_database": + owner: "existing_user_which_will_get_grant" + additionalParams: "" diff --git a/postgresql/values.yaml b/postgresql/values.yaml index 139fc70..89370a7 100644 --- a/postgresql/values.yaml +++ b/postgresql/values.yaml @@ -6,10 +6,13 @@ global: pullPolicy: image: + # -- image registry (could be overwritten by global.image.registry) registry: docker.io + # -- image repository repository: library/postgres + # -- This sets the pull policy for images. (could be overwritten by global.image.pullPolicy) pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. + # -- image tag - Overrides the image tag whose default is the chart appVersion. tag: "" imagePullSecrets: []