Add support for extra objects

This commit is contained in:
Anes Belfodil 2025-04-12 23:23:47 -04:00
parent 68c4b49636
commit c59a5df23e
No known key found for this signature in database
GPG Key ID: 7BDFAE29F1DE8EFE
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{{ range .Values.extraObjects }}
---
{{ if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (toYaml .) $ }}
{{- end }}
{{ end }}

View File

@ -544,3 +544,17 @@ controllerID:
# The name of the controller ID to use.
# If not set and create is true, a name is generated using the fullname template
name:
# -- Array of extra K8s manifests to deploy
## Note: Supports use of custom Helm templates
extraObjects: []
# - apiVersion: acid.zalan.do/v1
# kind: postgresql
# metadata:
# name: my-db-cluster
# namespace: default
# spec:
# teamId: my-team
# numberOfInstances: 3
# preparedDatabases:
# myfirstdb: {}