File tree Expand file tree Collapse file tree 5 files changed +30
-28
lines changed
charts/cloudnative-pg-cluster Expand file tree Collapse file tree 5 files changed +30
-28
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,11 @@ helm show values cnpg/cnpg-cluster > values.yaml
1616# install the chart
1717helm install cnpg cnpg/cnpg-cluster --values values.yaml
1818```
19+
20+ ## Notes
21+
22+ ### You must specify a bootstrap section
23+
24+ To use this chart you _ have_ to specify either ` bootstrap.initdb.database ` /` bootstrap.initdb.owner ` OR ` bootstrap.recovery.source ` in your helm parameters or values.yaml but you can't do both.
25+
26+ You can see checkout the [ CloudNativePG docs] ( https://cloudnative-pg.io/documentation/1.23/bootstrap/ ) for more info on the bootstrap section.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
22name : cnpg-cluster
33description : Create postgres tenant clusters managed by the CNPG Operator
44type : application
5- version : 0.3.15
5+ version : 0.4.0
66
77maintainers :
88 - name : " cloudymax"
Original file line number Diff line number Diff line change 11# cnpg-cluster
22
3- ![ Version: 0.3.14 ] ( https://img.shields.io/badge/Version-0.3.14 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
3+ ![ Version: 0.4.0 ] ( https://img.shields.io/badge/Version-0.4.0 -informational?style=flat-square ) ![ Type: application] ( https://img.shields.io/badge/Type-application-informational?style=flat-square )
44
55Create postgres tenant clusters managed by the CNPG Operator
66
@@ -16,8 +16,7 @@ Create postgres tenant clusters managed by the CNPG Operator
1616| Key | Type | Default | Description |
1717| -----| ------| ---------| -------------|
1818| backup | object | ` {} ` | if we should backup up this cluster, please see values.yaml for example |
19- | bootstrap.initdb.database | string | ` "app" ` | initial database to create |
20- | bootstrap.initdb.owner | string | ` "app" ` | owner of the initial database that is created above |
19+ | bootstrap | object | ` {} ` | boostrap method. see: https://cloudnative-pg.io/documentation/1.23/bootstrap/ |
2120| certificates.client.clientCASecret | string | ` "" ` | name of existing Kubernetes Secret for the postgresql client Certificate Authority cert, ignored if certificates.generate is true |
2221| certificates.client.enabled | bool | ` false ` | enable using client certificates |
2322| certificates.client.generate | bool | ` false ` | generate client certs using cert-manager. if true the following are ignored: certificates.clientCASecret, certificates.replicationTLSSecret |
Original file line number Diff line number Diff line change @@ -32,19 +32,10 @@ spec:
3232 {{- end }}
3333 storage :
3434 size : {{ .Values.storage.size }}
35+ {{- with .Values.bootstrap }}
3536 bootstrap :
36- {{- if .Values.bootstrap.initdb }}
37- {{- with .Values.bootstrap.initdb }}
38- initdb :
39- {{- toYaml . | nindent 6 }}
40- {{- end }}
41- {{- end }}
42- {{- if .Values.bootstrap.recovery }}
43- {{- with .Values.bootstrap.recovery }}
44- recovery :
45- {{- toYaml . | nindent 6 }}
46- {{- end }}
47- {{- end }}
37+ {{- toYaml . | nindent 4 }}
38+ {{- end }}
4839 {{- if or .Values.certificates.server.enabled .Values.certificates.client.enabled }}
4940 certificates :
5041 {{- if and .Values.certificates.server.enabled }}
Original file line number Diff line number Diff line change @@ -22,19 +22,23 @@ superuserSecret: ""
2222# the switchover of the primary
2323primaryUpdateStrategy : unsupervised
2424
25- bootstrap :
26- initdb :
27- # -- initial database to create
28- database : app
29- # -- owner of the initial database that is created above
30- owner : app
31- # secret:
32- # name: app-secret
33- # list of SQL commands to run as part of the init scripts, example:
34- # postInitSQL:
35- # - CREATE ROLE friend
36- # Specify an external cluster to bootstrap from
25+ # -- boostrap method. see: https://cloudnative-pg.io/documentation/1.23/bootstrap/
26+ bootstrap : {}
27+ # -- for initializing a fresh cluster
28+ # initdb:
29+ # # -- initial database to create
30+ # database: app
31+ # # -- owner of the initial database that is created above
32+ # owner: app
33+ # secret:
34+ # name: app-secret
35+ # list of SQL commands to run as part of the init scripts, example:
36+ # postInitSQL:
37+ # - CREATE ROLE friend
38+ #
39+ # for restoring a cluster
3740 # recovery:
41+ # # -- Specify an external cluster to bootstrap from
3842 # source: clusterBackup
3943
4044# -- See https://cloudnative-pg.io/documentation/current/cloudnative-pg.v1/#postgresql-cnpg-io-v1-RoleConfiguration for explanation of all options
You can’t perform that action at this time.
0 commit comments