Skip to content

Commit 1887555

Browse files
author
Max Roby
committed
fix conflict between initdb and recovery options in bootstrap menu
1 parent 4febe31 commit 1887555

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

charts/cloudnative-pg-cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: cnpg-cluster
33
description: Create postgres tenant clusters managed by the CNPG Operator
44
type: application
5-
version: 0.3.5
5+
version: 0.3.6
66

77
maintainers:
88
- name: "cloudymax"

charts/cloudnative-pg-cluster/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cnpg-cluster
22

3-
![Version: 0.3.5](https://img.shields.io/badge/Version-0.3.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 0.3.6](https://img.shields.io/badge/Version-0.3.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
Create postgres tenant clusters managed by the CNPG Operator
66

@@ -34,6 +34,7 @@ Create postgres tenant clusters managed by the CNPG Operator
3434
| certificates.server.serverTLSSecret | string | `""` | name of existing Kubernetes Secret for the postgresql server TLS cert, ignored if certificates.generate is true |
3535
| certificates.user.enabled | bool | `false` | create a certificate for a user to connect to postgres using CertManager requires server and client certificate generation enabled |
3636
| certificates.user.username | string | `"app"` | name of the user to create a cert for, eg: the DbOwner specified earlier. This data populated into the commonName field of the certificate. |
37+
| externalClusters | list | `[]` | |
3738
| instances | int | `3` | |
3839
| monitoring.enablePodMonitor | bool | `false` | enable monitoring via Prometheus |
3940
| name | string | `"cnpg"` | |

charts/cloudnative-pg-cluster/templates/cnpg_cluster.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ spec:
2626
{{- end }}
2727
storage:
2828
size: {{ .Values.storage.size }}
29-
{{- with .Values.bootstrap }}
3029
bootstrap:
31-
{{- toYaml . | nindent 4 }}
32-
{{- end }}
30+
{{- if .Values.bootstrap.initdb }}
31+
{{- with .Values.bootstrap.initdb }}
32+
initdb:
33+
{{- toYaml . | nindent 6 }}
34+
{{- end }}
35+
{{- end }}
36+
{{- if .Values.bootstrap.recovery }}
37+
{{- with .Values.bootstrap.recovery }}
38+
recovery:
39+
{{- toYaml . | nindent 6 }}
40+
{{- end }}
41+
{{- end }}
3342
{{- if or .Values.certificates.server.enabled .Values.certificates.client.enabled }}
3443
certificates:
3544
{{- if and .Values.certificates.server.enabled }}

charts/cloudnative-pg-cluster/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ bootstrap:
1414
# postInitSQL:
1515
# - CREATE ROLE friend
1616
# Specify an external cluster to bootstrap from
17-
# recovery:
18-
# source: clusterBackup
17+
# recovery:
18+
# source: clusterBackup
1919

2020
externalClusters: []
2121
# # -- name of external/existing cluster

0 commit comments

Comments
 (0)