diff --git a/deployment/k8s/charts/valueGenerator/Chart.yaml b/deployment/k8s/charts/valueGenerator/Chart.yaml new file mode 100644 index 0000000000..39b95548fc --- /dev/null +++ b/deployment/k8s/charts/valueGenerator/Chart.yaml @@ -0,0 +1,4 @@ +apiVersion: v2 +description: "This chart deploys nothing and is only meant to be used to consume fragments of yaml and root them into an aggregated file" +name: valueGenerator +version: 0.1.0 diff --git a/deployment/k8s/charts/valueGenerator/templates/values.yaml.tpl b/deployment/k8s/charts/valueGenerator/templates/values.yaml.tpl new file mode 100644 index 0000000000..ce0d701e14 --- /dev/null +++ b/deployment/k8s/charts/valueGenerator/templates/values.yaml.tpl @@ -0,0 +1,11 @@ +{{- define "values" -}} +{{- range $key, $value := .Values }} +{{ $key }}: +{{- if kindIs "string" $value }} +{{- $value | fromYaml | toYaml | nindent 2 }} +{{- else }} +{{- $value | toYaml | nindent 2 }} +{{- end }} +{{- end }} +{{- end -}} +{{ include "values" . }}