Skip to content

Commit 6b5154b

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents eb9b742 + 9969c81 commit 6b5154b

File tree

6 files changed

+37
-30
lines changed

6 files changed

+37
-30
lines changed

charts/cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name: cluster
2121
description: Deploys and manages a CloudNativePG cluster and its associated resources.
2222
icon: https://raw.githubusercontent.com/cloudnative-pg/artwork/main/cloudnativepg-logo.svg
2323
type: application
24-
version: 0.4.0
24+
version: 0.5.0
2525
sources:
2626
- https://github.com/cloudnative-pg/charts
2727
keywords:

charts/cluster/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# cluster
22

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)
3+
![Version: 0.5.0](https://img.shields.io/badge/Version-0.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
> **Warning**
66
> ### This chart is under active development.
@@ -274,7 +274,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
274274
| recovery.s3.secretKey | string | `""` | |
275275
| recovery.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
276276
| recovery.secret.name | string | `""` | Name of the backup credentials secret |
277-
| replica.bootstrap.database | string | `"app"` | Name of the database used by the application. Default: `app`. |
277+
| replica.bootstrap.database | string | `""` | Name of the database used by the application |
278278
| replica.bootstrap.owner | string | `""` | Name of the owner of the database in the instance to be used by applications. Defaults to the value of the `database` key. |
279279
| replica.bootstrap.secret | string | `""` | Name of the secret containing the initial credentials for the owner of the user database. If empty a new secret will be created from scratch |
280280
| replica.bootstrap.source | string | `""` | One of `object_store` or `pg_basebackup`. Method to use for bootstrap. |
@@ -289,6 +289,8 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
289289
| replica.origin.objectStore.azure.storageSasToken | string | `""` | |
290290
| replica.origin.objectStore.clusterName | string | `""` | The original cluster name when used in backups. Also known as serverName. |
291291
| replica.origin.objectStore.destinationPath | string | `""` | Overrides the provider specific default path. Defaults to: S3: s3://<bucket><path> Azure: https://<storageAccount>.<serviceName>.core.windows.net/<containerName><path> Google: gs://<bucket><path> |
292+
| replica.origin.objectStore.endpointCA | object | `{"create":false,"key":"","name":"","value":""}` | Specifies a CA bundle to validate a privately signed certificate. |
293+
| replica.origin.objectStore.endpointCA.create | bool | `false` | Creates a secret with the given value if true, otherwise uses an existing secret. |
292294
| replica.origin.objectStore.google.applicationCredentials | string | `""` | |
293295
| replica.origin.objectStore.google.bucket | string | `""` | |
294296
| replica.origin.objectStore.google.gkeEnvironment | bool | `false` | |
@@ -302,7 +304,7 @@ refer to the [CloudNativePG Documentation](https://cloudnative-pg.io/documentat
302304
| replica.origin.objectStore.s3.secretKey | string | `""` | |
303305
| replica.origin.objectStore.secret.create | bool | `true` | Whether to create a secret for the backup credentials |
304306
| replica.origin.objectStore.secret.name | string | `""` | Name of the backup credentials secret |
305-
| replica.origin.pg_basebackup.database | string | `"app"` | |
307+
| replica.origin.pg_basebackup.database | string | `""` | |
306308
| replica.origin.pg_basebackup.host | string | `""` | |
307309
| replica.origin.pg_basebackup.passwordSecret.key | string | `""` | |
308310
| replica.origin.pg_basebackup.passwordSecret.name | string | `""` | |

charts/cluster/templates/_bootstrap.tpl

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,8 @@ bootstrap:
8888
name: {{ .Values.recovery.backupName }}
8989
{{- else if and (eq .Values.recovery.method "object_store") (eq (include "cluster.useBarmanCloudPlugin" .) "false") }}
9090
source: objectStoreRecoveryCluster
91-
92-
externalClusters:
93-
- name: objectStoreRecoveryCluster
94-
barmanObjectStore:
95-
serverName: {{ .Values.recovery.clusterName }}
96-
{{- $d := dict "chartFullname" (include "cluster.fullname" .) "scope" .Values.recovery "secretPrefix" "recovery" -}}
97-
{{- include "cluster.barmanObjectStoreConfig" $d | indent 4 }}
98-
{{- else if and (eq .Values.recovery.method "object_store") (eq (include "cluster.useBarmanCloudPlugin" .) "true") }}
91+
{{- else }}
9992
source: origin
100-
101-
externalClusters:
102-
- name: origin
103-
plugin:
104-
name: barman-cloud.cloudnative-pg.io
105-
parameters:
106-
barmanObjectName: {{ include "cluster.fullname" $ }}-object-store
107-
serverName: {{ .Values.recovery.clusterName | default (include "cluster.fullname" .) }}
10893
{{- end }}
10994
{{- end }}
11095
{{- else if eq .Values.mode "replica" }}

charts/cluster/templates/_external_clusters.tpl

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
{{- define "cluster.externalClusters" -}}
2-
{{- if eq .Values.mode "standalone" }}
3-
externalClusters: []
2+
externalClusters:
3+
{{- if eq .Values.mode "standalone" }} []
44
{{- else if eq .Values.mode "recovery" }}
55
{{- if eq .Values.recovery.method "pg_basebackup" }}
6-
externalClusters:
76
- name: pgBaseBackupSource
87
{{- include "cluster.externalSourceCluster" .Values.recovery.pgBaseBackup.source | nindent 4 }}
98
{{- else if eq .Values.recovery.method "import" }}
10-
externalClusters:
119
- name: importSource
1210
{{- include "cluster.externalSourceCluster" .Values.recovery.import.source | nindent 4 }}
1311
{{- else if eq .Values.recovery.method "object_store" }}
14-
externalClusters:
12+
{{- if eq (include "cluster.useBarmanCloudPlugin" .) "false" }}
1513
- name: objectStoreRecoveryCluster
1614
barmanObjectStore:
1715
serverName: {{ .Values.recovery.clusterName }}
1816
{{- $d := dict "chartFullname" (include "cluster.fullname" .) "scope" .Values.recovery "secretPrefix" "recovery" -}}
1917
{{- include "cluster.barmanObjectStoreConfig" $d | nindent 4 }}
20-
{{- else }}
21-
externalClusters: []
18+
{{- else }}
19+
- name: origin
20+
plugin:
21+
name: barman-cloud.cloudnative-pg.io
22+
parameters:
23+
barmanObjectName: {{ include "cluster.fullname" $ }}-object-store
24+
serverName: {{ .Values.recovery.clusterName | default (include "cluster.fullname" .) }}
25+
{{- end }}
26+
{{- else }} []
2227
{{- end }}
2328
{{- else if eq .Values.mode "replica" }}
24-
externalClusters:
2529
- name: originCluster
2630
{{- if not (empty .Values.replica.origin.objectStore.provider) }}
2731
barmanObjectStore:

charts/cluster/values.schema.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,23 @@
770770
"destinationPath": {
771771
"type": "string"
772772
},
773+
"endpointCA": {
774+
"type": "object",
775+
"properties": {
776+
"create": {
777+
"type": "boolean"
778+
},
779+
"key": {
780+
"type": "string"
781+
},
782+
"name": {
783+
"type": "string"
784+
},
785+
"value": {
786+
"type": "string"
787+
}
788+
}
789+
},
773790
"google": {
774791
"type": "object",
775792
"properties": {

charts/cluster/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,8 +561,7 @@ replica:
561561
key: ""
562562
passwordSecret:
563563
name: ""
564-
key: ""
565-
564+
key: ""
566565
##
567566
# Database management configuration
568567
databases: []

0 commit comments

Comments
 (0)