title: How to get the name of a child chart with Helm?
body: <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>