<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>

THpubs
<p>If your charts looking as:</p>

<pre><code>charts
--- prisma
----- templates
------- prisma.yaml
----- values.yaml
--- postgresql
----- templates
------- postgresql.yaml
----- values.yaml
requirements.yaml
values.yaml
</code></pre>

<p>in prisma values.yaml define:</p>

<pre><code>dbhost: defaultdbhost
</code></pre>

<p>Then you can define in global values.yaml:</p>

<pre><code>prisma:
  dbhost: mydbhost
</code></pre>

<p>And into prisma.yaml use:</p>

<pre><code>prisma:
  enabled: true
  image:
    pullPolicy: Always
  auth:
    enabled: true
    secret: scret
  database:
    host: {{ .Values.dbhost }}
    port: 5432
    password: dbpass
</code></pre>

<p>For understand overriding values <a href="https://github.com/helm/helm/blob/master/docs/chart_template_guide/subcharts_and_globals.md" rel="nofollow noreferrer">read this document</a></p>
