From a2990a62317a00997b77be47ae0399da0410e4df Mon Sep 17 00:00:00 2001 From: Jesse Hitch Date: Sun, 28 Dec 2025 11:35:03 +0100 Subject: [PATCH 1/4] Update values.yaml - set major version to 17 We've already done this for our stuff, but we need to update the defaults. Another PR will set it to 18, so people can upgrade gracefully. --- charts/cloudnative-pg-cluster/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/cloudnative-pg-cluster/values.yaml b/charts/cloudnative-pg-cluster/values.yaml index 4a9b55e..b4412a9 100644 --- a/charts/cloudnative-pg-cluster/values.yaml +++ b/charts/cloudnative-pg-cluster/values.yaml @@ -5,7 +5,7 @@ name: "cnpg" instances: 3 # -- image to use for all tenant pods -imageName: ghcr.io/cloudnative-pg/postgresql:16.0 +imageName: ghcr.io/cloudnative-pg/postgresql:17.0 # -- CNPG disables the postgres superuser by default # must be explicitly enabled @@ -21,7 +21,7 @@ imageCatalog: # -- List of images to be provisioned in an image catalog. images: [] # - image: ghcr.io/your_repo/your_image:your_tag - # major: 16 + # major: 17 # Examples of rolling update strategy: # unsupervised: automated update of the primary once all From cae4c3d677db39d46c6e0bf9981e19da0ade7bb8 Mon Sep 17 00:00:00 2001 From: Jesse Hitch Date: Sun, 28 Dec 2025 11:41:37 +0100 Subject: [PATCH 2/4] Update Chart.yaml - update chart to 0.6.0 and update jessebot url --- charts/cloudnative-pg-cluster/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/cloudnative-pg-cluster/Chart.yaml b/charts/cloudnative-pg-cluster/Chart.yaml index a5dea8a..53385d1 100644 --- a/charts/cloudnative-pg-cluster/Chart.yaml +++ b/charts/cloudnative-pg-cluster/Chart.yaml @@ -2,10 +2,10 @@ apiVersion: v2 name: cnpg-cluster description: Create postgres tenant clusters managed by the CNPG Operator type: application -version: 0.5.0 +version: 0.6.0 maintainers: - name: "cloudymax" url: "https://github.com/cloudymax" - name: "jessebot" - url: "https://github.com/jessebot" + url: "https://jessebot.work" From e131d292829f1f5713dd838631cefee483084a75 Mon Sep 17 00:00:00 2001 From: jessebot Date: Sun, 28 Dec 2025 11:43:36 +0100 Subject: [PATCH 3/4] update helm-docs readme --- charts/cloudnative-pg-cluster/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/cloudnative-pg-cluster/README.md b/charts/cloudnative-pg-cluster/README.md index 62fa877..6b5d9aa 100644 --- a/charts/cloudnative-pg-cluster/README.md +++ b/charts/cloudnative-pg-cluster/README.md @@ -1,6 +1,6 @@ # cnpg-cluster -![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) Create postgres tenant clusters managed by the CNPG Operator @@ -9,7 +9,7 @@ Create postgres tenant clusters managed by the CNPG Operator | Name | Email | Url | | ---- | ------ | --- | | cloudymax | | | -| jessebot | | | +| jessebot | | | ## Values @@ -31,7 +31,7 @@ Create postgres tenant clusters managed by the CNPG Operator | externalClusters | list | `[]` | | | imageCatalog.create | bool | `true` | Whether to provision an image catalog. If imageCatalog.images is empty this option will be ignored. | | imageCatalog.images | list | `[]` | List of images to be provisioned in an image catalog. | -| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:16.0"` | image to use for all tenant pods | +| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:17.0"` | image to use for all tenant pods | | instances | int | `3` | number of postgres replicas minimum 1 required | | managed | object | `{"roles":[]}` | See https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-RoleConfiguration for explanation of all options | | monitoring.enablePodMonitor | bool | `false` | enable monitoring via Prometheus | From 605a8ec5bd43295448424dc0f5930476c21b4574 Mon Sep 17 00:00:00 2001 From: cloudymax Date: Sun, 28 Dec 2025 13:46:10 +0100 Subject: [PATCH 4/4] add ability to set storage class for cluster PVC --- charts/cloudnative-pg-cluster/README.md | 1 + charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml | 3 +++ charts/cloudnative-pg-cluster/values.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/charts/cloudnative-pg-cluster/README.md b/charts/cloudnative-pg-cluster/README.md index 6b5d9aa..b2acac7 100644 --- a/charts/cloudnative-pg-cluster/README.md +++ b/charts/cloudnative-pg-cluster/README.md @@ -43,6 +43,7 @@ Create postgres tenant clusters managed by the CNPG Operator | resources | object | `{}` | | | scheduledBackup | object | `{}` | schduled backups section, please see values.yaml for example | | storage.size | string | `"1Gi"` | how much storage to allocate to the postgresql cluster | +| storage.storageClass | string | `"default"` | set the storage class of the PVC. | | superuserSecret | string | `""` | name of existing secret to use as superuser redentials will be randomly generated if not specified. | | testApp.enabled | bool | `false` | | | type | string | `"postgresql"` | Type of the CNPG database. Available types: * `postgresql` * `postgis` * `timescaledb` | diff --git a/charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml b/charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml index d2d9c42..28d0572 100644 --- a/charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml +++ b/charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml @@ -41,6 +41,9 @@ spec: {{- end }} storage: size: {{ .Values.storage.size }} + {{- if ne .Values.storage.storageClass "default" }} + storageClass: {{ .Values.storage.storageClass }} + {{- end }} {{- with .Values.bootstrap }} bootstrap: {{- toYaml . | nindent 4 }} diff --git a/charts/cloudnative-pg-cluster/values.yaml b/charts/cloudnative-pg-cluster/values.yaml index b4412a9..26275fb 100644 --- a/charts/cloudnative-pg-cluster/values.yaml +++ b/charts/cloudnative-pg-cluster/values.yaml @@ -168,6 +168,8 @@ postgresql: storage: # -- how much storage to allocate to the postgresql cluster size: 1Gi + # -- set the storage class of the PVC. + storageClass: default # from https://cloudnative-pg.io/documentation/1.22/resource_management/ resources: {}