<p>I have a helm chart that requires <code>stable/redis</code> as a child chart. The parent chart needs to expose the redis service as an environment variable.</p>

<p>The redis chart includes a template called <code>redis.fullname</code>. How can I refer to this in my parent chart? I.e. I want something like this in my parent deployment but it doesn't work:</p>

<pre><code>kind: Deployment
spec:
  template:
    containers:
        env:
        - name: REDIS_CLUSTER_SERVICE_HOST
          value: {{ template "redis.fullname" . }}
</code></pre>

<p>You can use <code>'{{ .Release.Name }}-redis'</code> in your parent chart. I had same requirement. This is my example in case you want to take a look -><a href="https://github.com/kubernetes/charts/tree/master/incubator/distribution" rel="nofollow noreferrer">https://github.com/kubernetes/charts/tree/master/incubator/distribution</a></p>
