@@ -4,19 +4,19 @@ metadata:
4
4
name : {{ default .Release.Name .Values.name }}
5
5
spec :
6
6
postgresVersion : {{ default 13 .Values.postgresVersion }}
7
- {{- if .Values.postGISVersion }}
7
+ {{- if .Values.postGISVersion }}
8
8
postGISVersion : {{ quote .Values.postGISVersion }}
9
- {{- end }}
10
- {{- if .Values.imagePostgres }}
9
+ {{- end }}
10
+ {{- if .Values.imagePostgres }}
11
11
image : {{ .Values.imagePostgres | quote }}
12
- {{- end }}
13
- {{- if .Values.port }}
12
+ {{- end }}
13
+ {{- if .Values.port }}
14
14
port : {{ .Values.port }}
15
- {{- end }}
16
- {{- if .Values.instances }}
15
+ {{- end }}
16
+ {{- if .Values.instances }}
17
17
instances :
18
18
{{ toYaml .Values.instances | indent 4 }}
19
- {{- else }}
19
+ {{- else }}
20
20
instances :
21
21
- name : {{ default "instance1" .Values.instanceName | quote }}
22
22
replicas : {{ default 1 .Values.instanceReplicas }}
@@ -26,21 +26,21 @@ spec:
26
26
resources :
27
27
requests :
28
28
storage : {{ default "1Gi" .Values.instanceSize | quote }}
29
- {{- if or .Values.instanceMemory .Values.instanceCPU }}
29
+ {{- if or .Values.instanceMemory .Values.instanceCPU }}
30
30
resources :
31
31
limits :
32
32
cpu : {{ default "" .Values.instanceCPU | quote }}
33
33
memory : {{ default "" .Values.instanceMemory | quote }}
34
- {{- end }}
35
- {{- end }}
34
+ {{- end }}
35
+ {{- end }}
36
36
backups :
37
37
pgbackrest :
38
- {{- if .Values.imagePgBackRest }}
38
+ {{- if .Values.imagePgBackRest }}
39
39
image : {{ .Values.imagePgBackRest | quote }}
40
- {{- end }}
41
- {{- if .Values.pgBackRestConfig }}
40
+ {{- end }}
41
+ {{- if .Values.pgBackRestConfig }}
42
42
{{ toYaml .Values.pgBackRestConfig | indent 6 }}
43
- {{- else if .Values.multiBackupRepos }}
43
+ {{- else if .Values.multiBackupRepos }}
44
44
configuration :
45
45
- secret :
46
46
name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
@@ -74,22 +74,22 @@ spec:
74
74
container : {{ $repo.azure.container | quote }}
75
75
{{- end }}
76
76
{{- end }}
77
- {{- else if .Values.s3 }}
77
+ {{- else if .Values.s3 }}
78
78
configuration :
79
79
- secret :
80
80
name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
81
81
global :
82
82
repo1-path : /pgbackrest/{{ .Release.Namespace }}/{{ default .Release.Name .Values.name }}/repo1
83
- {{- if .Values.s3.encryptionPassphrase }}
83
+ {{- if .Values.s3.encryptionPassphrase }}
84
84
repo1-cipher-type : aes-256-cbc
85
- {{- end }}
85
+ {{- end }}
86
86
repos :
87
87
- name : repo1
88
88
s3 :
89
89
bucket : {{ .Values.s3.bucket | quote }}
90
90
endpoint : {{ .Values.s3.endpoint | quote }}
91
91
region : {{ .Values.s3.region | quote }}
92
- {{- else if .Values.gcs }}
92
+ {{- else if .Values.gcs }}
93
93
configuration :
94
94
- secret :
95
95
name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
99
99
- name : repo1
100
100
gcs :
101
101
bucket : {{ .Values.gcs.bucket | quote }}
102
- {{- else if .Values.azure }}
102
+ {{- else if .Values.azure }}
103
103
configuration :
104
104
- secret :
105
105
name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
@@ -109,7 +109,7 @@ spec:
109
109
- name : repo1
110
110
azure :
111
111
container : {{ .Values.azure.container | quote }}
112
- {{- else }}
112
+ {{- else }}
113
113
repos :
114
114
- name : repo1
115
115
volume :
@@ -119,85 +119,85 @@ spec:
119
119
resources :
120
120
requests :
121
121
storage : {{ default "1Gi" .Values.backupsSize | quote }}
122
- {{- end }}
123
- {{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
122
+ {{- end }}
123
+ {{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
124
124
proxy :
125
125
pgBouncer :
126
- {{- if .Values.imagePgBouncer }}
126
+ {{- if .Values.imagePgBouncer }}
127
127
image : {{ .Values.imagePgBouncer | quote }}
128
- {{- end }}
129
- {{- if .Values.pgBouncerConfig }}
128
+ {{- end }}
129
+ {{- if .Values.pgBouncerConfig }}
130
130
{{ toYaml .Values.pgBouncerConfig | indent 6 }}
131
- {{- else }}
131
+ {{- else }}
132
132
replicas : {{ .Values.pgBouncerReplicas }}
133
- {{- end }}
134
- {{- end }}
135
- {{- if .Values.patroni }}
133
+ {{- end }}
134
+ {{- end }}
135
+ {{- if .Values.patroni }}
136
136
patroni :
137
137
{{ toYaml .Values.patroni | indent 4 }}
138
- {{- end }}
139
- {{- if .Values.users }}
138
+ {{- end }}
139
+ {{- if .Values.users }}
140
140
users :
141
141
{{ toYaml .Values.users | indent 4 }}
142
- {{- end }}
143
- {{- if .Values.service }}
142
+ {{- end }}
143
+ {{- if .Values.service }}
144
144
service :
145
145
{{ toYaml .Values.service | indent 4 }}
146
- {{- end }}
147
- {{- if .Values.dataSource }}
146
+ {{- end }}
147
+ {{- if .Values.dataSource }}
148
148
service :
149
149
{{ toYaml .Values.dataSource | indent 4 }}
150
- {{- end }}
151
- {{- if .Values.databaseInitSQL }}
150
+ {{- end }}
151
+ {{- if .Values.databaseInitSQL }}
152
152
databaseInitSQL :
153
153
name : {{ required "A ConfigMap name is required for running bootstrap SQL." .Values.databaseInitSQL.name | quote }}
154
154
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 }}
157
157
imagePullPolicy : {{ .Values.imagePullPolicy | quote }}
158
- {{- end }}
159
- {{- if .Values.imagePullSecrets }}
158
+ {{- end }}
159
+ {{- if .Values.imagePullSecrets }}
160
160
imagePullSecrets :
161
161
{{ toYaml .Values.imagePullSecrets | indent 4 }}
162
- {{- end }}
163
- {{- if .Values.disableDefaultPodScheduling }}
162
+ {{- end }}
163
+ {{- if .Values.disableDefaultPodScheduling }}
164
164
disableDefaultPodScheduling : true
165
- {{- end }}
166
- {{- if .Values.metadata }}
165
+ {{- end }}
166
+ {{- if .Values.metadata }}
167
167
metadata :
168
168
{{ toYaml .Values.metadata | indent 4 }}
169
- {{- end }}
170
- {{- if .Values.monitoring }}
169
+ {{- end }}
170
+ {{- if .Values.monitoring }}
171
171
monitoring :
172
172
pgmonitor :
173
173
exporter :
174
174
image : {{ default "" .Values.imageExporter | quote }}
175
- {{- if .Values.monitoringConfig }}
175
+ {{- if .Values.monitoringConfig }}
176
176
{{ toYaml .Values.monitoringConfig | indent 8 }}
177
- {{- end }}
178
- {{- end }}
179
- {{- if .Values.shutdown }}
177
+ {{- end }}
178
+ {{- end }}
179
+ {{- if .Values.shutdown }}
180
180
shutdown : true
181
- {{- end }}
182
- {{- if .Values.standby }}
181
+ {{- end }}
182
+ {{- if .Values.standby }}
183
183
standby :
184
184
enabled : {{ .Values.standby.enabled }}
185
185
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 }}
188
188
supplementalGroups :
189
189
{{ toYaml .Values.supplementalGroups | indent 4 }}
190
- {{- end }}
191
- {{- if .Values.openshift }}
190
+ {{- end }}
191
+ {{- if .Values.openshift }}
192
192
openshift : true
193
- {{- else if eq .Values.openshift false }}
193
+ {{- else if eq .Values.openshift false }}
194
194
openshift : false
195
- {{- end }}
196
- {{- if .Values.customTLSSecret }}
195
+ {{- end }}
196
+ {{- if .Values.customTLSSecret }}
197
197
customTLSSecret :
198
198
{{ toYaml .Values.customTLSSecret | indent 4 }}
199
- {{- end }}
200
- {{- if .Values.customReplicationTLSSecret }}
199
+ {{- end }}
200
+ {{- if .Values.customReplicationTLSSecret }}
201
201
customReplicationTLSSecret :
202
202
{{ toYaml .Values.customReplicationTLSSecret | indent 4 }}
203
- {{- end }}
203
+ {{- end }}
0 commit comments