Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{{ .Namespace }} is not available in values.yaml.gotmpl #470

Open
aweis89 opened this issue Feb 8, 2019 · 1 comment
Open

{{ .Namespace }} is not available in values.yaml.gotmpl #470

aweis89 opened this issue Feb 8, 2019 · 1 comment

Comments

@aweis89
Copy link

aweis89 commented Feb 8, 2019

Use case

We're using the official mysql helm chart in multiple namespaces so to prevent name conflicts, this is working as expected

releases:
- name: {{ .Namespace }}-mysql

However the release name is also used for the svc name so in my application chart values.yaml.gotmpl, we're adding:

- name:  DATABASE_HOST
  value: {{ .Namespace }}-mysql

But that ends up just being -mysql

As a workaround we're using requiredEnv instead and adding the namespace as an env var.

@victornoel
Copy link
Contributor

@aweis89 This is a duplicate of #351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants