Compare commits
3 Commits
postgres-c
...
postgres-c
Author | SHA1 | Date | |
---|---|---|---|
d2444fb544 | |||
202a534e8e | |||
c36e4e371f |
@@ -1,6 +1,6 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-cluster
|
name: postgres-cluster
|
||||||
version: 3.20.8
|
version: 3.21.0
|
||||||
description: Chart for cloudnative-pg cluster
|
description: Chart for cloudnative-pg cluster
|
||||||
keywords:
|
keywords:
|
||||||
- database
|
- database
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
bootstrap:
|
bootstrap:
|
||||||
{{- if eq .Values.mode "standalone" }}
|
{{- if eq .Values.mode "standalone" }}
|
||||||
initdb:
|
initdb:
|
||||||
{{- with .Values.cluster.initdb }}
|
{{- with .Values.bootstrap.initdb }}
|
||||||
{{- with (omit . "postInitApplicationSQL") }}
|
{{- with (omit . "postInitApplicationSQL") }}
|
||||||
{{- . | toYaml | nindent 4 }}
|
{{- . | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -10,7 +10,7 @@ bootstrap:
|
|||||||
{{- if eq .Values.type "tensorchord" }}
|
{{- if eq .Values.type "tensorchord" }}
|
||||||
dataChecksums: true
|
dataChecksums: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or (eq .Values.type "postgis") (eq .Values.type "timescaledb") (eq .Values.type "tensorchord") (.Values.cluster.initdb.postInitApplicationSQL) }}
|
{{- if or (eq .Values.type "postgis") (eq .Values.type "timescaledb") (eq .Values.type "tensorchord") (.Values.bootstrap.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;
|
||||||
@@ -29,7 +29,7 @@ bootstrap:
|
|||||||
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA vectors TO "app";
|
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA vectors TO "app";
|
||||||
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "app";
|
- GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "app";
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.cluster.initdb }}
|
{{- with .Values.bootstrap.initdb }}
|
||||||
{{- range .postInitApplicationSQL }}
|
{{- range .postInitApplicationSQL }}
|
||||||
{{- printf "- %s" . | nindent 6 }}
|
{{- printf "- %s" . | nindent 6 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@@ -37,11 +37,6 @@ bootstrap:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else if eq .Values.mode "replica" }}
|
{{- else if eq .Values.mode "replica" }}
|
||||||
initdb:
|
initdb:
|
||||||
{{- with .Values.cluster.initdb }}
|
|
||||||
{{- with (omit . "postInitApplicationSQL") }}
|
|
||||||
{{- . | toYaml | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
import:
|
import:
|
||||||
type: {{ .Values.replica.importType }}
|
type: {{ .Values.replica.importType }}
|
||||||
databases:
|
databases:
|
||||||
@@ -66,6 +61,11 @@ bootstrap:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
source:
|
source:
|
||||||
externalCluster: "{{ include "cluster.name" . }}-cluster"
|
externalCluster: "{{ include "cluster.name" . }}-cluster"
|
||||||
|
{{- with .Values.bootstrap.initdb }}
|
||||||
|
{{- with (omit . "postInitApplicationSQL") }}
|
||||||
|
{{- . | toYaml | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
externalClusters:
|
externalClusters:
|
||||||
- name: "{{ include "cluster.name" . }}-cluster"
|
- name: "{{ include "cluster.name" . }}-cluster"
|
||||||
{{- with .Values.replica.externalCluster }}
|
{{- with .Values.replica.externalCluster }}
|
||||||
|
@@ -18,6 +18,7 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.cluster.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.cluster.image.pullPolicy }}
|
||||||
postgresUID: {{ .Values.cluster.postgresUID }}
|
postgresUID: {{ .Values.cluster.postgresUID }}
|
||||||
postgresGID: {{ .Values.cluster.postgresGID }}
|
postgresGID: {{ .Values.cluster.postgresGID }}
|
||||||
|
enableSuperuserAccess: {{ .Values.cluster.enableSuperuserAccess }}
|
||||||
walStorage:
|
walStorage:
|
||||||
size: {{ .Values.cluster.walStorage.size }}
|
size: {{ .Values.cluster.walStorage.size }}
|
||||||
storageClass: {{ .Values.cluster.walStorage.storageClass }}
|
storageClass: {{ .Values.cluster.walStorage.storageClass }}
|
||||||
|
@@ -28,6 +28,8 @@ cluster:
|
|||||||
postgresUID: 26
|
postgresUID: 26
|
||||||
postgresGID: 26
|
postgresGID: 26
|
||||||
|
|
||||||
|
enableSuperuserAccess: false
|
||||||
|
|
||||||
walStorage:
|
walStorage:
|
||||||
size: 2Gi
|
size: 2Gi
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
@@ -80,6 +82,7 @@ cluster:
|
|||||||
hot_standby_feedback: "on"
|
hot_standby_feedback: "on"
|
||||||
shared_preload_libraries: []
|
shared_preload_libraries: []
|
||||||
|
|
||||||
|
bootstrap:
|
||||||
# BootstrapInitDB is the configuration of the bootstrap process when initdb is used.
|
# BootstrapInitDB is the configuration of the bootstrap process when initdb is used.
|
||||||
# See: https://cloudnative-pg.io/documentation/current/bootstrap/
|
# See: https://cloudnative-pg.io/documentation/current/bootstrap/
|
||||||
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb
|
# See: https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-bootstrapinitdb
|
||||||
|
Reference in New Issue
Block a user