<p>Whats the best way to get the helm subchart service names to reference into my ingress controller that will sit in the parent chart</p>

<pre><code>values.yaml
---
ingress:
  paths:
    - serviceName: app-1
      path: /app-1/*
      port: 8080
    - serviceName: app-2
      path: /app-2/*
      port: 8080


ingress.yaml 
---
{{- range .Values.ingress.paths }}
          - path: {{ .path }}
            backend:
              {{- $subchart := .serviceName -}}
              serviceName: {{- include "$subchart.fullname" .}}
              servicePort: {{ .port }}
        {{- end }}
</code></pre>

<p>template: no template "$subchart.fullname" associated with template "gotpl"</p>

<p>helm 3.7 version has solved the problem
<a href="https://github.com/helm/helm/pull/9957" rel="noreferrer">https://github.com/helm/helm/pull/9957</a>.<br />
You can use like this</p>
<pre><code>{{ template &quot;bar.fullname&quot; .Subcharts.bar }}
</code></pre>
