Skip to content

new Helmfile(v1.0.0) failed to run sync with templating error #2189

@99887710

Description

@99887710

when trying to run helmfile sync with v1.0.0, it showed error

in ./helmfile.yaml: error during helmfile.yaml.part.0 parsing: template: stringTemplate:14:21: executing "stringTemplate" at <.Release.Name>: can't evaluate field Release in type *state.EnvironmentTemplateData

releases:
  - name: xxx
    chart: xxx
    version: xxx
    namespace: xxx
    kubeContext: xxx
    values:
      - ./{{`{{ .Release.Name }}`}}/values.yaml
    secrets:
      - ./{{`{{ .Release.Name }}`}}/secrets.yaml

But when I tried to use older version like v0.163.0, it worked, not sure if it is a breaking change related to template rendering. Does anyone have thoughts? thanks

Update: v1.0.0 works with the following one without `{{``

releases:
  - name: xxx
    chart: xxx
    version: xxx
    namespace: xxx
    kubeContext: xxx
    values:
      - ./{{ .Release.Name }}/values.yaml
    secrets:
      - ./{{ .Release.Name }}/secrets.yaml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions