Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Reconsider global variables in values.yaml #238

Closed
tongpu opened this issue Oct 3, 2019 · 2 comments
Closed

Reconsider global variables in values.yaml #238

tongpu opened this issue Oct 3, 2019 · 2 comments
Labels
area/chart-only Related to changes that simply require yaml chart changes, e.g. exposing a new field enhancement New feature or request

Comments

@tongpu
Copy link

tongpu commented Oct 3, 2019

Because of the way global variables are implemented in this and the vault chart it is currently impossible to configure the consul chart as a dependency/subchart of the vault chart, because global.image with the value vault:1.2.2 from the vault chart will also be rendered in the consul templates, because it too uses global.image for the configuration of the image version.

It is not recommended to use global variables in helm charts in this way and I would propose to switch to the normal way this is implemented in helm/charts, e.g.

image:
  repository: consul
  tag: 1.6.1

For vault this change might be rather straightforward, because not many variables are currently defined in global, but for consul more variables are already defined as global variables.

The issue is also tracked in vault-helm: hashicorp/vault-helm#68

@lkysow
Copy link
Member

lkysow commented Oct 9, 2019

Hi Lukas,
Thanks for the issue. This is unfortunate that helm treats that variable differently. I'm guessing we didn't know that at the time.

I can look at what it would take to use a different name and keep backwards compatibility.

@lkysow lkysow added area/chart-only Related to changes that simply require yaml chart changes, e.g. exposing a new field enhancement New feature or request labels Oct 9, 2019
@lkysow
Copy link
Member

lkysow commented Jan 16, 2020

Hi Lukas, unfortunately I don't think we're ever going to be able to change the global variable. It would break backwards compatibility too much.

Since vault has made the change to server.image I think this does solve the particular problem you're encountering.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/chart-only Related to changes that simply require yaml chart changes, e.g. exposing a new field enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants