Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Source controller creates zero bytes helm chart artifacts #343

Closed
willejs opened this issue Apr 20, 2021 · 0 comments · Fixed by #345
Closed

Source controller creates zero bytes helm chart artifacts #343

willejs opened this issue Apr 20, 2021 · 0 comments · Fixed by #345
Labels
area/helm Helm related issues and pull requests bug Something isn't working

Comments

@willejs
Copy link

willejs commented Apr 20, 2021

When the default values.yaml file and override valuesFiles in a helm chart match, zero byte tarball artifacts are created.

This manifests itself at the helm controller where you receive an error:

file '/tmp/flux-system-some-service-238100903.tgz' does not appear to be a gzipped archive; got 'application/octet-stream'

It looks like the source controller diffs the two values files, and upon no diff, does not save the chart and writes an empty file.

I thought it was something to do with the logic here, It looks like it uses the goto and fallthrough to the default clause, which just saves the artifact, which is empty?

Anyway, adding something into the override file to make it diff is a workaround.

See: https://cloud-native.slack.com/archives/CLAJ40HV3/p1618843302170000

@hiddeco hiddeco added area/helm Helm related issues and pull requests bug Something isn't working labels Apr 20, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area/helm Helm related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants