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

template output-dir repeated usage duplicate values #1484

Closed
sstarcher opened this issue Apr 26, 2024 · 3 comments
Closed

template output-dir repeated usage duplicate values #1484

sstarcher opened this issue Apr 26, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@sstarcher
Copy link
Contributor

Operating system

Ubuntu 20.24

Helmfile Version

161.0

Helm Version

3.14.1

Bug description

helmfile template
--include-crds
--skip-tests
-f ""helmfile.yaml"
--output-dir "${OUTPUT_DIR}"/
--output-dir-template="{{ .OutputDir }}/releases/{{ .Release.Name }}"

Running the command the first time you get all of the correct outputs to OUTPUT_DIR. If you run it a second time while the files already exist the vast majority of them are identical, but a few resource types get duplicated where the values get appended. Each subsequent time you run helmfile template it adds to the existing file instead of replacing it with the output of helmfile template.

This seems to be happening for any resource that contains a helm.sh/hook, but not resources without a helm.sh/hook reference.

Example helmfile.yaml

N/A

Error message you've seen (if any)

N/A

Steps to reproduce

template out files with a helm hook multiple times to the same folder

Working Helmfile Version

N/A

Relevant discussion

No response

@sstarcher
Copy link
Contributor Author

Root issue looks to be a helm issue feel free to close this helm/helm#12988

@yxxhero
Copy link
Member

yxxhero commented Apr 29, 2024

@sstarcher Thanks for your issue.

Copy link

stale bot commented May 13, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 13, 2024
@stale stale bot closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants