Given values.yaml
:
outer:
inner:
someKey: false
What does the following syntax in a helm template file mean?
{{- if index (default (dict) .Values.outer.inner) "someKey" }}
{{- .... }}
{{- end }}
From context, I can infer what I think it's supposed to do: check if the specified key exists at the specified location.
But where does the default (dict)...
syntax come from? Sprig? I can't find it documented in any of these places:
https://v2.helm.sh/docs/chart_template_guide/#template-functions-and-pipelines
https://golang.org/pkg/text/template/#hdr-Functions
http://masterminds.github.io/sprig/
http://masterminds.github.io/sprig/defaults.html
And what does it actually mean?