Skip to content

Commit 182ac26

Browse files
authored
Merge pull request #39 from small-hack/jessebot-patch-1
Set major version to 17, and allow user to specify storageclass for cluster PVCs
2 parents c6a8c3b + 605a8ec commit 182ac26

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

charts/cloudnative-pg-cluster/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ apiVersion: v2
22
name: cnpg-cluster
33
description: Create postgres tenant clusters managed by the CNPG Operator
44
type: application
5-
version: 0.5.0
5+
version: 0.6.0
66

77
maintainers:
88
- name: "cloudymax"
99
url: "https://github.com/cloudymax"
1010
- name: "jessebot"
11-
url: "https://github.com/jessebot"
11+
url: "https://jessebot.work"

charts/cloudnative-pg-cluster/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cnpg-cluster
22

3-
![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)
3+
![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)
44

55
Create postgres tenant clusters managed by the CNPG Operator
66

@@ -9,7 +9,7 @@ Create postgres tenant clusters managed by the CNPG Operator
99
| Name | Email | Url |
1010
| ---- | ------ | --- |
1111
| cloudymax | | <https://github.com/cloudymax> |
12-
| jessebot | | <https://github.com/jessebot> |
12+
| jessebot | | <https://jessebot.work> |
1313

1414
## Values
1515

@@ -31,7 +31,7 @@ Create postgres tenant clusters managed by the CNPG Operator
3131
| externalClusters | list | `[]` | |
3232
| imageCatalog.create | bool | `true` | Whether to provision an image catalog. If imageCatalog.images is empty this option will be ignored. |
3333
| imageCatalog.images | list | `[]` | List of images to be provisioned in an image catalog. |
34-
| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:16.0"` | image to use for all tenant pods |
34+
| imageName | string | `"ghcr.io/cloudnative-pg/postgresql:17.0"` | image to use for all tenant pods |
3535
| instances | int | `3` | number of postgres replicas minimum 1 required |
3636
| managed | object | `{"roles":[]}` | See https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-RoleConfiguration for explanation of all options |
3737
| monitoring.enablePodMonitor | bool | `false` | enable monitoring via Prometheus |
@@ -43,6 +43,7 @@ Create postgres tenant clusters managed by the CNPG Operator
4343
| resources | object | `{}` | |
4444
| scheduledBackup | object | `{}` | schduled backups section, please see values.yaml for example |
4545
| storage.size | string | `"1Gi"` | how much storage to allocate to the postgresql cluster |
46+
| storage.storageClass | string | `"default"` | set the storage class of the PVC. |
4647
| superuserSecret | string | `""` | name of existing secret to use as superuser redentials will be randomly generated if not specified. |
4748
| testApp.enabled | bool | `false` | |
4849
| type | string | `"postgresql"` | Type of the CNPG database. Available types: * `postgresql` * `postgis` * `timescaledb` |

charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ spec:
4141
{{- end }}
4242
storage:
4343
size: {{ .Values.storage.size }}
44+
{{- if ne .Values.storage.storageClass "default" }}
45+
storageClass: {{ .Values.storage.storageClass }}
46+
{{- end }}
4447
{{- with .Values.bootstrap }}
4548
bootstrap:
4649
{{- toYaml . | nindent 4 }}

charts/cloudnative-pg-cluster/values.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: "cnpg"
55
instances: 3
66

77
# -- image to use for all tenant pods
8-
imageName: ghcr.io/cloudnative-pg/postgresql:16.0
8+
imageName: ghcr.io/cloudnative-pg/postgresql:17.0
99

1010
# -- CNPG disables the postgres superuser by default
1111
# must be explicitly enabled
@@ -21,7 +21,7 @@ imageCatalog:
2121
# -- List of images to be provisioned in an image catalog.
2222
images: []
2323
# - image: ghcr.io/your_repo/your_image:your_tag
24-
# major: 16
24+
# major: 17
2525

2626
# Examples of rolling update strategy:
2727
# unsupervised: automated update of the primary once all
@@ -168,6 +168,8 @@ postgresql:
168168
storage:
169169
# -- how much storage to allocate to the postgresql cluster
170170
size: 1Gi
171+
# -- set the storage class of the PVC.
172+
storageClass: default
171173

172174
# from https://cloudnative-pg.io/documentation/1.22/resource_management/
173175
resources: {}

0 commit comments

Comments
 (0)