title: How to pass a deployment's full name to a variable in helm values.yaml?
body: <p>How to pass the <code>fullname</code> of a dependant chart into another chart in the <code>values.yaml</code>?</p>
  
  <p>My <code>values.yaml</code> looks like this:</p>
  
  <pre><code>##
  ## Prisma chart configuration
  ##
  prisma:
    enabled: true
    image:
      pullPolicy: Always
    auth:
      enabled: true
      secret: scret
    database:
      host: {{ template "postgresql.fullname" . }}
      port: 5432
      password: dbpass
  
  
  ##
  ## Postgreqsl chart configuration
  ##
  postgresql:
    enabled: true
    imagePullPolicy: Always
    postgresqlUsername: prisma
    postgresqlPassword: dbpass
    persistence:
      enabled: true
      storageClass: storage-0
  </code></pre>
  
  <p>In there, I need to pass the name of the <code>postgresql</code> instance to <code>prisma</code>.</p>
  
  <p>If I try to install this, it gives me the following error:</p>
  
  <pre><code>error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{"template \"postgresql.fullname\" .":interface {}(nil)}
  </code></pre>