Files
homelab/k8s/argoapps/templates/appvalues.yaml
T
2023-04-15 05:02:41 +00:00

18 lines
568 B
YAML

---
{{ $currentScope := .}}
{{- $appvalues := dict -}}
{{ range $path, $_ := .Files.Glob "values/shared/**.yaml" }}
{{- with $currentScope }}
{{ $newobj := .Files.Get $path | fromYaml }}
{{ $appvalues := mergeOverwrite $appvalues $newobj }}
{{- end -}}
{{ end }}
{{- $deploymentPath := printf "values/%s/**.yaml" .Values.deployment -}}
{{ range $path, $_ := .Files.Glob $deploymentPath }}
{{- with $currentScope }}
{{ $newobj := .Files.Get $path | fromYaml }}
{{ $appvalues := mergeOverwrite $appvalues $newobj }}
{{- end -}}
{{ end }}
---