How do I access blocks or templates defiend in a dependant helm chart from a parrent helm chart?

Viewed 55

I have a helm chart for an application that uses the Bitnami MongoDB chart (10.x)

dependencies:
  - repository: https://charts.bitnami.com/bitnami
    name: mongodb
    version: ~10.28.2

I want to access MongoDB's chart's value {{ include "mongodb.service.nameOverride" . }}

However, when I use it in my parent chart.

            - name: MONGO_HOST
              #value:  {{ include "mongodb.service.nameOverride" . }}
              value: maestro-maestro-mongodb-headless

I get the error:

[ERROR] templates/: template: foo/templates/services/deployment.yaml:36:26: executing "maestro/templates/services/deployment.yaml" at <include "mongodb.service.nameOverride" .>: error calling include: template: no template "mongodb.service.nameOverride" associated with template "gotpl"

I can not find any documentation on this.

0 Answers
Related