Skip to content

helmfile template using --output-dir-template bypasses Helm's --post-renderer #2515

Description

@javajawa

Operating system

Recreated on Debian trixie and MacOS something something

Helmfile Version

1.4.3

Helm Version

v3.18.6

Bug description

When setting an --output-dir-template in helmfile template, the files written will contain the content from before the --post-renderer helm processing. The--post-renderer still gets run with no input. Any ouput from it is written to stdout and ignored by helmfile.

This is most appearant when you set up a mutating filter. The provided sample repo includes one that deletes all the helm output and replaces it with a blank namespace.

Example helmfile.yaml

Almost any valid helmfile.yaml can be used to create this.

repositories:
- name: prometheus-community
  url: https://prometheus-community.github.io/helm-charts

releases:
- name: prom-norbac-ubuntu
  namespace: prometheus
  chart: prometheus-community/prometheus

Error message you've seen (if any)

N/A (No error message)

Steps to reproduce

http://github.com/javajawa/helmfile-2515

Working Helmfile Version

Unknown. This was found whilst implementing a feature locally, so I do not know if this is a regression.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions