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

selector labels renders all releases within helmfiles. #2182

Open
tanwar4 opened this issue Nov 28, 2023 · 0 comments
Open

selector labels renders all releases within helmfiles. #2182

tanwar4 opened this issue Nov 28, 2023 · 0 comments

Comments

@tanwar4
Copy link

tanwar4 commented Nov 28, 2023

What is the benefit of using selector labels if the helmfile renders all releases within it. Is there a way to only render the releases selected by labels so that I do not have to pass required environment parameters that are not required by selected release?

templates:
  default:
    values:
      - global:
          foo: {{ requiredEnv "foo" | quote }}
          bar: {{ requiredEnv "bar" }}
      - ../file/common.yaml

releases:
  - name: rel1
    chart: repo/chart1
    version: 0.1.0
    labels:
      tier: label1
    inherit:
      - template: default
    values:
      - global:
          BUZZ: {{ requiredEnv "buzz" }}


  - name: rel2
    chart: repo/chart2
    version: 0.1.0
    labels:
      tier: label2
    inherit:
      - template: default

For the above helmfile, even when I just want to deploy rel2, I have to pass "buzz" env variable. Is there a way to just deploy rel2 without passing "buzz"?

  This works- 
  buzz=TEST helmfile sync -l tier=label2
  
  This does not work- 
  helmfile sync -l tier=label2
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

1 participant