Add support for cloning the database from a backup.
Showing
2 changed files
with
7 additions
and
0 deletions
... | @@ -6,6 +6,9 @@ postgresql: | ... | @@ -6,6 +6,9 @@ postgresql: |
6 | version: "14" | 6 | version: "14" |
7 | waitForPg: | 7 | waitForPg: |
8 | image: registry.opensource.zalan.do/acid/spilo-14:2.1-p6 | 8 | image: registry.opensource.zalan.do/acid/spilo-14:2.1-p6 |
9 | # clone: | ||
10 | # uid: | ||
11 | # timestamp: | ||
9 | initialAdmin: | 12 | initialAdmin: |
10 | username: admin | 13 | username: admin |
11 | password: admin | 14 | password: admin | ... | ... |
... | @@ -19,6 +19,10 @@ releases: | ... | @@ -19,6 +19,10 @@ releases: |
19 | size: {{ .Values.postgresql.volume.size | quote }} | 19 | size: {{ .Values.postgresql.volume.size | quote }} |
20 | postgresql: | 20 | postgresql: |
21 | version: {{ .Values.postgresql.version | quote }} | 21 | version: {{ .Values.postgresql.version | quote }} |
22 | {{- if .Values | get "clone.uid" nil }} | ||
23 | clone: | ||
24 | {{ merge .Values.clone ( dict "cluster" "kpg-postgres" ) | toYaml | nindent 12 }} | ||
25 | {{- end }} | ||
22 | 26 | ||
23 | - name: kpg-keycloak | 27 | - name: kpg-keycloak |
24 | namespace: {{ .Values.namespace }} | 28 | namespace: {{ .Values.namespace }} | ... | ... |
-
Please register or sign in to post a comment