I have a template file like the one below.
{{- $appName := include "template-name.camelcase" . }}
{{- range $versions := .Values.domain.$appName }}
---
apiVersion: networking.k8s.io/v1beta1
kind:Ingress
metadata:
name: {{ $appName }}-{{ $versions.environment }}
---
{{- end }}
It doesn't seem to take the $appName variable that I've appended to .Values.domain. If I replace $appName with a hardcoded value that contains a list of values then helm will build the template. Is there a different syntax or way I should go about passing the list to the range operation?