Compare commits

...

4 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
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.1 version: 3.8.4
description: Chart for cloudnative-pg cluster description: Chart for cloudnative-pg cluster
keywords: keywords:
- database - database

View File

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

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/
@@ -180,7 +180,7 @@ backup:
# Whether to instruct the storage provider to encrypt WAL files. One of `` (use the storage container default), `AES256` or `aws:kms`. # Whether to instruct the storage provider to encrypt WAL files. One of `` (use the storage container default), `AES256` or `aws:kms`.
encryption: "" encryption: ""
# Number of WAL files to be archived or restored in parallel. # Number of WAL files to be archived or restored in parallel.
jobs: 2 maxParallel: 2
data: data:
# Data compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`. # Data compression method. One of `` (for no compression), `gzip`, `bzip2` or `snappy`.
compression: snappy compression: snappy