File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 16
16
username : {{ "postgres" | b64enc }}
17
17
---
18
18
{{- end }}
19
+ {{- if .Values.cloudNativePG.initDb }}
20
+ apiVersion : v1
21
+ kind : Secret
22
+ metadata :
23
+ name : {{ include "adhoc-odoo.fullname" . }}-pg-odoo
24
+ labels :
25
+ {{- include "adhoc-odoo.labels" . | nindent 4 }}
26
+ type : kubernetes.io/basic-auth
27
+ data :
28
+ username : {{ "odoo" | b64enc | quote }}
29
+ password : {{ .Values.cloudNativePG.superUserPassword | b64enc | quote }}
30
+ ---
31
+ {{- end }}
19
32
{{- if and .Values.cloudNativePG.backup.bucket.enabled ( eq (lower .Values.adhoc.appType) "prod" ) }}
20
33
apiVersion : v1
21
34
kind : Secret
@@ -151,6 +164,7 @@ spec:
151
164
retentionPolicy : " 360d"
152
165
{{- end }}
153
166
167
+ {{- if or .Values.cloudNativePG.restore.inTimeRecovery .Values.cloudNativePG.initDb }}
154
168
bootstrap :
155
169
{{- if .Values.cloudNativePG.restore.inTimeRecovery }}
156
170
recovery :
@@ -176,6 +190,14 @@ spec:
176
190
targetTime : {{ .Values.cloudNativePG.restore.inTimeRecovery | quote }}
177
191
{{- end }}
178
192
{{- end }}
193
+ {{- if .Values.cloudNativePG.initDb }}
194
+ initdb :
195
+ database : " odoo"
196
+ owner : " odoo"
197
+ secret :
198
+ name : {{ include "adhoc-odoo.fullname" . }}-pg-odoo
199
+ {{- end }}
200
+ {{- end }}
179
201
180
202
{{- if .Values.cloudNativePG.backup.bucket.enabled }}
181
203
externalClusters :
Original file line number Diff line number Diff line change @@ -245,4 +245,5 @@ cloudNativePG:
245
245
volumeSnapshotClass : gcp-r # gcp
246
246
# Not implemented
247
247
fromDump : " "
248
- inTimeRecovery : null # null for no recovery (initdb), latest for or timestamp (in the RFC3339 standard)
248
+ inTimeRecovery : null # null for no recovery, latest for or timestamp (in the RFC3339 standard)
249
+ initDb : false
You can’t perform that action at this time.
0 commit comments