Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/cloudnative-pg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Kubernetes: `>=1.29.0-0`
| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}` | Container Security Context. |
| crds.create | bool | `true` | Specifies whether the CRDs should be created when installing the chart. |
| dnsPolicy | string | `""` | |
| extraObjects | list | `[]` | Extra Kubernetes manifests to deploy alongside this chart. Each entry is passed through `tpl`, so Helm templating is supported. |
| fullnameOverride | string | `""` | |
| hostNetwork | bool | `false` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
Expand Down
15 changes: 15 additions & 0 deletions charts/cloudnative-pg/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- /* Normalize extraObjects to a list, easier to loop over */ -}}
{{- $extraObjects := .Values.extraObjects | default (list) -}}

{{- if kindIs "map" $extraObjects -}}
{{- $extraObjects = values $extraObjects -}}
{{- end -}}

{{- range $extraObjects }}
---
{{- if kindIs "map" . }}
{{- tpl (toYaml .) $ | nindent 0 }}
{{- else if kindIs "string" . }}
{{- tpl . $ | nindent 0 }}
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/cloudnative-pg/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@
"default": "",
"type": "string"
},
"extraObjects": {
"description": "Extra Kubernetes manifests to deploy alongside the cloudnative-pg operator.\nEach entry is passed through `tpl`, so Helm templating is supported.",
"items": {
"required": []
},
"type": "array"
},
"fullnameOverride": {
"default": "",
"type": "string"
Expand Down
20 changes: 20 additions & 0 deletions charts/cloudnative-pg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -694,3 +694,23 @@ monitoringQueriesConfigMap:
description: "An update is available"
target_databases:
- '*'

# -- Extra Kubernetes manifests to deploy alongside this chart. Each entry is passed through `tpl`, so Helm templating is supported.
extraObjects: []
# - apiVersion: v1
# kind: ConfigMap
# metadata:
# name: "{{ include \"cloudnative-pg.fullname\" . }}-grafana-dashboard"
# labels:
# grafana_dashboard: "1"
# data:
# cnpg-dashboard.json: |-
# { ... }
# - |
# apiVersion: v1
# kind: Secret
# type: Opaque
# metadata:
# name: cnpg-secret
# data:
# { ... }
1 change: 1 addition & 0 deletions charts/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ Kubernetes: `>=1.29.0-0`
| cluster.walStorage.size | string | `"1Gi"` | |
| cluster.walStorage.storageClass | string | `""` | |
| databases | list | `[]` | Database management configuration. |
| extraObjects | list | `[]` | Extra Kubernetes manifests to deploy alongside this chart. Each entry is passed through `tpl`, so Helm templating is supported. |
| fullnameOverride | string | `""` | Override the full name of the chart |
| imageCatalog.create | bool | `true` | Whether to provision an image catalog. If imageCatalog.images is empty this option will be ignored. |
| imageCatalog.images | list | `[]` | List of images to be provisioned in an image catalog. |
Expand Down
15 changes: 15 additions & 0 deletions charts/cluster/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- /* Normalize extraObjects to a list, easier to loop over */ -}}
{{- $extraObjects := .Values.extraObjects | default (list) -}}

{{- if kindIs "map" $extraObjects -}}
{{- $extraObjects = values $extraObjects -}}
{{- end -}}

{{- range $extraObjects }}
---
{{- if kindIs "map" . }}
{{- tpl (toYaml .) $ | nindent 0 }}
{{- else if kindIs "string" . }}
{{- tpl . $ | nindent 0 }}
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/cluster/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,13 @@
},
"type": "array"
},
"extraObjects": {
"description": "Extra Kubernetes manifests to deploy alongside the cluster.\nEach entry is passed through `tpl`, so Helm templating is supported.",
"items": {
"required": []
},
"type": "array"
},
"fullnameOverride": {
"default": "",
"description": "Override the full name of the chart",
Expand Down
20 changes: 20 additions & 0 deletions charts/cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -707,3 +707,23 @@ poolers: []
# # -- Custom PgBouncer deployment template.
# # Use to override image, specify resources, etc.
# template: {}

# -- Extra Kubernetes manifests to deploy alongside this chart. Each entry is passed through `tpl`, so Helm templating is supported.
extraObjects: []
# - apiVersion: v1
# kind: ConfigMap
# metadata:
# name: "{{ include \"cluster.fullname\" . }}-grafana-dashboard"
# labels:
# grafana_dashboard: "1"
# data:
# cluster-dashboard.json: |-
# { ... }
# - |
# apiVersion: v1
# kind: Secret
# type: Opaque
# metadata:
# name: cnpg-cluster-secret
# data:
# { ... }
1 change: 1 addition & 0 deletions charts/plugin-barman-cloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Kubernetes: `>=1.29.0-0`
| containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":10001,"runAsUser":10001,"seccompProfile":{"type":"RuntimeDefault"}}` | Container Security Context. |
| crds.create | bool | `true` | Specifies whether the CRDs should be created when installing the chart. |
| dnsPolicy | string | `""` | |
| extraObjects | list | `[]` | Extra Kubernetes manifests to deploy alongside this chart. Each entry is passed through `tpl`, so Helm templating is supported. |
| fullnameOverride | string | `""` | |
| hostNetwork | bool | `false` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
Expand Down
15 changes: 15 additions & 0 deletions charts/plugin-barman-cloud/templates/extra-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{- /* Normalize extraObjects to a list, easier to loop over */ -}}
{{- $extraObjects := .Values.extraObjects | default (list) -}}

{{- if kindIs "map" $extraObjects -}}
{{- $extraObjects = values $extraObjects -}}
{{- end -}}

{{- range $extraObjects }}
---
{{- if kindIs "map" . }}
{{- tpl (toYaml .) $ | nindent 0 }}
{{- else if kindIs "string" . }}
{{- tpl . $ | nindent 0 }}
{{- end }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/plugin-barman-cloud/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@
"default": "",
"type": "string"
},
"extraObjects": {
"description": "Extra Kubernetes manifests to deploy alongside the barman cloud plugin.\nEach entry is passed through `tpl`, so Helm templating is supported.",
"items": {
"required": []
},
"type": "array"
},
"fullnameOverride": {
"default": "",
"type": "string"
Expand Down
20 changes: 20 additions & 0 deletions charts/plugin-barman-cloud/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,23 @@ certificate:
duration: 2160h
# -- The renew before time for the certificates.
renewBefore: 360h

# -- Extra Kubernetes manifests to deploy alongside this chart. Each entry is passed through `tpl`, so Helm templating is supported.
extraObjects: []
# - apiVersion: v1
# kind: ConfigMap
# metadata:
# name: "{{ include \"plugin-barman-cloud.fullname\" . }}-grafana-dashboard"
# labels:
# grafana_dashboard: "1"
# data:
# plugin-barman-cloud-dashboard.json: |-
# { ... }
# - |
# apiVersion: v1
# kind: Secret
# type: Opaque
# metadata:
# name: plugin-barman-cloud-secret
# data:
# { ... }