helmfile icon indicating copy to clipboard operation
helmfile copied to clipboard

Environment values are not injected to the chart

Open scrhicks opened this issue 3 years ago • 4 comments

Hello

I created simple helmfile to deploy vault with production environment. But after apply the values from production config was not apply to the resources. What I'm doing wrong?

helmfile.yaml

repositories:
- name: hashicorp
  url: https://helm.releases.hashicorp.com

environments:
  production:
    values:
      - environments/production/vault.yaml

releases:
  - name: vault
    namespace: vault
    createNamespace: true
    labels:
      app: vault
    chart: hashicorp/vault
    version: 0.19.0

Sync command:

helmfile --selector app=vault --environment=production sync

Best regards, Przemyslaw

scrhicks avatar May 03 '22 15:05 scrhicks

Same here

baryal2022 avatar Jul 08 '22 14:07 baryal2022

Hello,

I'm tried same stuff with Helmfile version v0.145.4, but instead of values.yaml in environment configuration I specify concrete variables.

morozovcookie avatar Aug 29 '22 15:08 morozovcookie

repositories:
- name: hashicorp
  url: https://helm.releases.hashicorp.com

environments:
  production:
    values:
      - environments/production/vault.yaml

releases:
  - name: vault
    namespace: vault
    createNamespace: true
    labels:
      app: vault
    chart: hashicorp/vault
    version: 0.19.0
    # pass values
    values:
      - vaulues.yaml.gotmpl  # use go template in this file. and config from environments/production/vault.yaml

yxxhero avatar Aug 29 '22 23:08 yxxhero

see: https://github.com/roboll/helmfile/issues/2148

yxxhero avatar Aug 29 '22 23:08 yxxhero