Compare commits

...

5 Commits

Author SHA1 Message Date
9f68b30a31 change condition handling 2024-07-08 12:09:29 -05:00
668d50dfdb add conditional check for postinit 2024-07-04 22:52:02 -05:00
93a232947e increment chart 2024-07-04 22:45:41 -05:00
667236239d fix backup fields 2024-07-04 22:45:18 -05:00
875f0c143c fix backup fields 2024-07-04 22:41:31 -05:00
4 changed files with 9 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: postgres-cluster name: postgres-cluster
version: 3.8.0 version: 3.8.4
description: Chart for cloudnative-pg cluster description: Chart for cloudnative-pg cluster
keywords: keywords:
- database - database

View File

@@ -35,8 +35,8 @@ backup:
{{- if .Values.backup.data.encryption }} {{- if .Values.backup.data.encryption }}
encryption: {{ .Values.backup.data.encryption }} encryption: {{ .Values.backup.data.encryption }}
{{- end }} {{- end }}
{{- if .Values.backup.data.maxParallel }} {{- if .Values.backup.data.jobs }}
maxParallel: {{ .Values.backup.data.maxParallel }} jobs: {{ .Values.backup.data.jobs }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@@ -7,6 +7,7 @@ bootstrap:
{{- . | toYaml | nindent 4 }} {{- . | toYaml | nindent 4 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if or (eq .Values.type "postgis") (eq .Values.type "timescaledb") (.Values.cluster.initdb.postInitApplicationSQL) }}
postInitApplicationSQL: postInitApplicationSQL:
{{- if eq .Values.type "postgis" }} {{- if eq .Values.type "postgis" }}
- CREATE EXTENSION IF NOT EXISTS postgis; - CREATE EXTENSION IF NOT EXISTS postgis;
@@ -21,6 +22,7 @@ bootstrap:
{{- printf "- %s" . | nindent 6 }} {{- printf "- %s" . | nindent 6 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
{{- else if eq .Values.mode "replica" }} {{- else if eq .Values.mode "replica" }}
initdb: initdb:
import: import:
@@ -94,8 +96,8 @@ externalClusters:
{{- if .Values.recovery.data.encryption }} {{- if .Values.recovery.data.encryption }}
encryption: {{ .Values.recovery.data.encryption }} encryption: {{ .Values.recovery.data.encryption }}
{{- end }} {{- end }}
{{- if .Values.recovery.data.maxParallel }} {{- if .Values.recovery.data.jobs }}
maxParallel: {{ .Values.recovery.data.maxParallel }} jobs: {{ .Values.recovery.data.jobs }}
{{- end }} {{- end }}
{{- else }} {{- else }}
{{ fail "Invalid cluster mode!" }} {{ fail "Invalid cluster mode!" }}

View File

@@ -125,7 +125,7 @@ recovery:
# Whether to instruct the storage provider to encrypt data files. One of `` (use the storage container default), `AES256` or `aws:kms`. # Whether to instruct the storage provider to encrypt data files. One of `` (use the storage container default), `AES256` or `aws:kms`.
encryption: "" encryption: ""
# Number of data files to be archived or restored in parallel. # Number of data files to be archived or restored in parallel.
maxParallel: 2 jobs: 2
replica: replica:
# See https://cloudnative-pg.io/documentation/current/database_import/ # See https://cloudnative-pg.io/documentation/current/database_import/
@@ -187,7 +187,7 @@ backup:
# Whether to instruct the storage provider to encrypt data files. One of `` (use the storage container default), `AES256` or `aws:kms`. # Whether to instruct the storage provider to encrypt data files. One of `` (use the storage container default), `AES256` or `aws:kms`.
encryption: "" encryption: ""
# Number of data files to be archived or restored in parallel. # Number of data files to be archived or restored in parallel.
maxParallel: 2 jobs: 2
# Retention policy for backups # Retention policy for backups
retentionPolicy: "30d" retentionPolicy: "30d"