Skip to content

Commit

Permalink
feat: updated default postgresql version (#21)
Browse files Browse the repository at this point in the history
* feat: updated default postgresql version

* feat: updating to latest v17 minor version

Co-authored-by: CasLubbers <clubbers@akamai.com>

* feat: added imagecatalog support

* feat: added optional imageCatalogRef

* feat: added cnpg networkpolicy

* feat: allowing all pods in the cnpg-namespace

---------

Co-authored-by: CasLubbers <clubbers@akamai.com>
  • Loading branch information
Ani1357 and CasLubbers authored Jan 20, 2025
1 parent 3a013b7 commit 5534863
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
6 changes: 5 additions & 1 deletion quickstart-postgresql/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ spec:
database: {{ include "postgresql.fullname" . }}
dataChecksums: {{ .Values.bootstrap.initdb.dataChecksums }}
primaryUpdateStrategy: {{ .Values.primaryUpdateStrategy }}
imageName: ghcr.io/cloudnative-pg/postgresql:15.3
{{- with .Values.imageName }}
imageName: {{ . }}
{{- else }}
imageCatalogRef: {{ .Values.imageCatalogRef | toYaml | nindent 4 }}
{{- end }}
storage:
{{- with .Values.storage.storageClass }}
storageClass: {{ . }}
Expand Down
22 changes: 22 additions & 0 deletions quickstart-postgresql/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@ fullnameOverride: ''
## default set to 2 for smooth migration between nodes
instances: 2

## @param postgresMajor Major version of PostgreSQL to be used
## This specifies the major version of PostgreSQL to deploy.
## Ensure compatibility with any extensions or configuration settings.
## Allowed values are 15 and 17.


## @param imageName Fully qualified image name for the PostgreSQL container
## When set, this takes precedence over the `imageCatalogRef` parameter.
## Use this to specify an exact container image for deployment.
## Set to `null` if `imageCatalogRef` should be used instead.
imageName: null

## @param imageCatalogRef Reference to a ClusterImageCatalog resource for PostgreSQL
## Specifies the catalog reference for resolving the PostgreSQL container image.
## Ignored if `imageName` is set.
## Use this to dynamically resolve the image based on the catalog. More info: https://cloudnative-pg.io/documentation/1.24/image_catalog/
imageCatalogRef:
apiGroup: postgresql.cnpg.io
kind: ClusterImageCatalog
name: platform
major: 17

# @param primaryUpdateStrategy Rolling update strategy
# Select between unsupervised (automated update of the primary once all
# replicas have been upgraded) or supervised (requires manual supervision to perform
Expand Down

0 comments on commit 5534863

Please sign in to comment.