@@ -4,19 +4,19 @@ metadata:
44 name : {{ default .Release.Name .Values.name }}
55spec :
66 postgresVersion : {{ default 13 .Values.postgresVersion }}
7- {{- if .Values.postGISVersion }}
7+ {{- if .Values.postGISVersion }}
88 postGISVersion : {{ quote .Values.postGISVersion }}
9- {{- end }}
10- {{- if .Values.imagePostgres }}
9+ {{- end }}
10+ {{- if .Values.imagePostgres }}
1111 image : {{ .Values.imagePostgres | quote }}
12- {{- end }}
13- {{- if .Values.port }}
12+ {{- end }}
13+ {{- if .Values.port }}
1414 port : {{ .Values.port }}
15- {{- end }}
16- {{- if .Values.instances }}
15+ {{- end }}
16+ {{- if .Values.instances }}
1717 instances :
1818{{ toYaml .Values.instances | indent 4 }}
19- {{- else }}
19+ {{- else }}
2020 instances :
2121 - name : {{ default "instance1" .Values.instanceName | quote }}
2222 replicas : {{ default 1 .Values.instanceReplicas }}
@@ -26,21 +26,21 @@ spec:
2626 resources :
2727 requests :
2828 storage : {{ default "1Gi" .Values.instanceSize | quote }}
29- {{- if or .Values.instanceMemory .Values.instanceCPU }}
29+ {{- if or .Values.instanceMemory .Values.instanceCPU }}
3030 resources :
3131 limits :
3232 cpu : {{ default "" .Values.instanceCPU | quote }}
3333 memory : {{ default "" .Values.instanceMemory | quote }}
34- {{- end }}
35- {{- end }}
34+ {{- end }}
35+ {{- end }}
3636 backups :
3737 pgbackrest :
38- {{- if .Values.imagePgBackRest }}
38+ {{- if .Values.imagePgBackRest }}
3939 image : {{ .Values.imagePgBackRest | quote }}
40- {{- end }}
41- {{- if .Values.pgBackRestConfig }}
40+ {{- end }}
41+ {{- if .Values.pgBackRestConfig }}
4242{{ toYaml .Values.pgBackRestConfig | indent 6 }}
43- {{- else if .Values.multiBackupRepos }}
43+ {{- else if .Values.multiBackupRepos }}
4444 configuration :
4545 - secret :
4646 name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
@@ -74,22 +74,22 @@ spec:
7474 container : {{ $repo.azure.container | quote }}
7575 {{- end }}
7676 {{- end }}
77- {{- else if .Values.s3 }}
77+ {{- else if .Values.s3 }}
7878 configuration :
7979 - secret :
8080 name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
8181 global :
8282 repo1-path : /pgbackrest/{{ .Release.Namespace }}/{{ default .Release.Name .Values.name }}/repo1
83- {{- if .Values.s3.encryptionPassphrase }}
83+ {{- if .Values.s3.encryptionPassphrase }}
8484 repo1-cipher-type : aes-256-cbc
85- {{- end }}
85+ {{- end }}
8686 repos :
8787 - name : repo1
8888 s3 :
8989 bucket : {{ .Values.s3.bucket | quote }}
9090 endpoint : {{ .Values.s3.endpoint | quote }}
9191 region : {{ .Values.s3.region | quote }}
92- {{- else if .Values.gcs }}
92+ {{- else if .Values.gcs }}
9393 configuration :
9494 - secret :
9595 name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
9999 - name : repo1
100100 gcs :
101101 bucket : {{ .Values.gcs.bucket | quote }}
102- {{- else if .Values.azure }}
102+ {{- else if .Values.azure }}
103103 configuration :
104104 - secret :
105105 name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
@@ -109,7 +109,7 @@ spec:
109109 - name : repo1
110110 azure :
111111 container : {{ .Values.azure.container | quote }}
112- {{- else }}
112+ {{- else }}
113113 repos :
114114 - name : repo1
115115 volume :
@@ -119,85 +119,85 @@ spec:
119119 resources :
120120 requests :
121121 storage : {{ default "1Gi" .Values.backupsSize | quote }}
122- {{- end }}
123- {{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
122+ {{- end }}
123+ {{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
124124 proxy :
125125 pgBouncer :
126- {{- if .Values.imagePgBouncer }}
126+ {{- if .Values.imagePgBouncer }}
127127 image : {{ .Values.imagePgBouncer | quote }}
128- {{- end }}
129- {{- if .Values.pgBouncerConfig }}
128+ {{- end }}
129+ {{- if .Values.pgBouncerConfig }}
130130{{ toYaml .Values.pgBouncerConfig | indent 6 }}
131- {{- else }}
131+ {{- else }}
132132 replicas : {{ .Values.pgBouncerReplicas }}
133- {{- end }}
134- {{- end }}
135- {{- if .Values.patroni }}
133+ {{- end }}
134+ {{- end }}
135+ {{- if .Values.patroni }}
136136 patroni :
137137{{ toYaml .Values.patroni | indent 4 }}
138- {{- end }}
139- {{- if .Values.users }}
138+ {{- end }}
139+ {{- if .Values.users }}
140140 users :
141141{{ toYaml .Values.users | indent 4 }}
142- {{- end }}
143- {{- if .Values.service }}
142+ {{- end }}
143+ {{- if .Values.service }}
144144 service :
145145{{ toYaml .Values.service | indent 4 }}
146- {{- end }}
147- {{- if .Values.dataSource }}
146+ {{- end }}
147+ {{- if .Values.dataSource }}
148148 service :
149149{{ toYaml .Values.dataSource | indent 4 }}
150- {{- end }}
151- {{- if .Values.databaseInitSQL }}
150+ {{- end }}
151+ {{- if .Values.databaseInitSQL }}
152152 databaseInitSQL :
153153 name : {{ required "A ConfigMap name is required for running bootstrap SQL." .Values.databaseInitSQL.name | quote }}
154154 key : {{ required "A key in a ConfigMap containing any bootstrap SQL is required." .Values.databaseInitSQL.key | quote }}
155- {{- end }}
156- {{- if .Values.imagePullPolicy }}
155+ {{- end }}
156+ {{- if .Values.imagePullPolicy }}
157157 imagePullPolicy : {{ .Values.imagePullPolicy | quote }}
158- {{- end }}
159- {{- if .Values.imagePullSecrets }}
158+ {{- end }}
159+ {{- if .Values.imagePullSecrets }}
160160 imagePullSecrets :
161161{{ toYaml .Values.imagePullSecrets | indent 4 }}
162- {{- end }}
163- {{- if .Values.disableDefaultPodScheduling }}
162+ {{- end }}
163+ {{- if .Values.disableDefaultPodScheduling }}
164164 disableDefaultPodScheduling : true
165- {{- end }}
166- {{- if .Values.metadata }}
165+ {{- end }}
166+ {{- if .Values.metadata }}
167167 metadata :
168168{{ toYaml .Values.metadata | indent 4 }}
169- {{- end }}
170- {{- if .Values.monitoring }}
169+ {{- end }}
170+ {{- if .Values.monitoring }}
171171 monitoring :
172172 pgmonitor :
173173 exporter :
174174 image : {{ default "" .Values.imageExporter | quote }}
175- {{- if .Values.monitoringConfig }}
175+ {{- if .Values.monitoringConfig }}
176176{{ toYaml .Values.monitoringConfig | indent 8 }}
177- {{- end }}
178- {{- end }}
179- {{- if .Values.shutdown }}
177+ {{- end }}
178+ {{- end }}
179+ {{- if .Values.shutdown }}
180180 shutdown : true
181- {{- end }}
182- {{- if .Values.standby }}
181+ {{- end }}
182+ {{- if .Values.standby }}
183183 standby :
184184 enabled : {{ .Values.standby.enabled }}
185185 repoName : {{ required "repoName must be set when enabling standby mode." .Values.standby.repoName }}
186- {{- end }}
187- {{- if .Values.supplementalGroups }}
186+ {{- end }}
187+ {{- if .Values.supplementalGroups }}
188188 supplementalGroups :
189189{{ toYaml .Values.supplementalGroups | indent 4 }}
190- {{- end }}
191- {{- if .Values.openshift }}
190+ {{- end }}
191+ {{- if .Values.openshift }}
192192 openshift : true
193- {{- else if eq .Values.openshift false }}
193+ {{- else if eq .Values.openshift false }}
194194 openshift : false
195- {{- end }}
196- {{- if .Values.customTLSSecret }}
195+ {{- end }}
196+ {{- if .Values.customTLSSecret }}
197197 customTLSSecret :
198198{{ toYaml .Values.customTLSSecret | indent 4 }}
199- {{- end }}
200- {{- if .Values.customReplicationTLSSecret }}
199+ {{- end }}
200+ {{- if .Values.customReplicationTLSSecret }}
201201 customReplicationTLSSecret :
202202{{ toYaml .Values.customReplicationTLSSecret | indent 4 }}
203- {{- end }}
203+ {{- end }}
0 commit comments