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

Write chart data on identitical values overwrite #345

Merged
merged 1 commit into from
Apr 21, 2021
Merged

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Apr 21, 2021

This likely happened because the byte buffer response was already
being read by the chart loader, making it empty by the time the
artifact was written to storage.

As an alternative, and because it makes the code a tiny bit less
obnoxious: write the data to a temp file first, and later decide
what file to copy over and use as an stored artifact.

Fixes: #343

@hiddeco hiddeco added bug Something isn't working area/helm Helm related issues and pull requests labels Apr 21, 2021
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @hiddeco nice refactoring too 🏅

This likely happened because the byte buffer response was already
being read by the chart loader, making it empty by the time the
artifact was written to storage.

As an alternative, and because it makes the code a tiny bit less
obnoxious: write the data to a temp file first, and later decide
what file to copy over and use as an stored artifact.

Signed-off-by: Hidde Beydals <hello@hidde.co>
@stefanprodan stefanprodan merged commit b5b9cb4 into main Apr 21, 2021
@stefanprodan stefanprodan deleted the empty-chart-fix branch April 21, 2021 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/helm Helm related issues and pull requests bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source controller creates zero bytes helm chart artifacts
2 participants