Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ Kubernetes: `>=1.29.0-0`
| cluster.enableSuperuserAccess | bool | `true` | When this option is enabled, the operator will use the SuperuserSecret to update the postgres user password. If the secret is not present, the operator will automatically create one. When this option is disabled, the operator will ignore the SuperuserSecret content, delete it when automatically created, and then blank the password of the postgres user by setting it to NULL. |
| cluster.env | list | `[]` | Env follows the Env format to pass environment variables to the pods created in the cluster |
| cluster.envFrom | list | `[]` | EnvFrom follows the EnvFrom format to pass environment variables sources to the pods to be used by Env |
| cluster.ephemeralVolumeSource | object | `{}` | Override the default emptyDir used by CNPG for temporary storage. See: https://cloudnative-pg.io/documentation/current/cluster_conf/#ephemeral-volumes |
| cluster.imageCatalogRef | object | `{}` | Reference to `ImageCatalog` of `ClusterImageCatalog`, if specified takes precedence over `cluster.imageName` |
| cluster.imageName | string | `""` | Name of the container image, supporting both tags (<image>:<tag>) and digests for deterministic and repeatable deployments: <image>:<tag>@sha256:<digestValue> |
| cluster.imagePullPolicy | string | `"IfNotPresent"` | Image pull policy. One of Always, Never or IfNotPresent. If not defined, it defaults to IfNotPresent. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images |
Expand Down
4 changes: 4 additions & 0 deletions charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
storageClass: {{ .Values.cluster.walStorage.storageClass }}
{{- end }}
{{- end }}
{{- with .Values.cluster.ephemeralVolumeSource }}
ephemeralVolumeSource:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.cluster.resources }}
resources:
{{- toYaml . | nindent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ spec:
walStorage:
size: 256Mi
storageClass: standard
ephemeralVolumeSource:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
storageClassName: scratch-storage-class
resources:
requests:
storage: 1Gi
affinity:
topologyKey: kubernetes.io/hostname
nodeAffinity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ cluster:
enabled: true
size: 256Mi
storageClass: standard
ephemeralVolumeSource:
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
storageClassName: scratch-storage-class
resources:
requests:
storage: 1Gi
postgresUID: 1001
postgresGID: 1002
resources:
Expand Down
5 changes: 5 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@
},
"type": "array"
},
"ephemeralVolumeSource": {
"description": "Override the default emptyDir used by CNPG for temporary storage.\nSee: https://cloudnative-pg.io/documentation/current/cluster_conf/#ephemeral-volumes",
"required": [],
"type": "object"
},
"imageCatalogRef": {
"description": "Reference to `ImageCatalog` of `ClusterImageCatalog`, if specified takes precedence over `cluster.imageName`",
"required": [],
Expand Down
11 changes: 11 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,17 @@ cluster:
size: 1Gi
storageClass: ""

# -- Override the default emptyDir used by CNPG for temporary storage.
# See: https://cloudnative-pg.io/documentation/current/cluster_conf/#ephemeral-volumes
ephemeralVolumeSource: {}
# volumeClaimTemplate:
# spec:
# accessModes: ["ReadWriteOnce"]
# storageClassName: "scratch-storage-class"
# resources:
# requests:
# storage: 1Gi

# -- The UID of the postgres user inside the image, defaults to 26
postgresUID: -1

Expand Down