Skip to content

Add compression to configmap storage driver - #1420

Merged
technosophos merged 1 commit into
helm:masterfrom
databus23:compression
Oct 20, 2016
Merged

technosophos merged 1 commit into
helm:masterfrom
databus23:compression

Conversation

@databus23

@databus23 databus23 commented Oct 20, 2016 •

Copy link
Copy Markdown
Contributor

This is a PR to address #1413.

This PR changes the configmap storage driver to compress
the serialized release before storing it as a base64 encoded string.
This change is backward compatible as it handles existing releases
gracefully by skipping the decompression step when the gzip magic
header is not present.


This change is Reviewable

@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

// For backwards compatibility with releases that were stored before
// compression was introduced we skip decompression if the
// gzip magic header is not found
if bytes.Equal(b[0:3], magicGzip) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Clever. Good call.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very cool!

This commit changes the configmap storage driver to compress
the serialized release before storing it as a base64 encoded string.
This change is backward compatible as it handles existing releases
gracefully by skipping the decompression step when the gzip magic
header is not present.
@googlebot

Copy link
Copy Markdown

CLAs look good, thanks!

@technosophos

Copy link
Copy Markdown
Member

As soon as the LF CLA gets signed, let me know and I'll merge. Thanks!

@databus23

Copy link
Copy Markdown
Contributor Author

I signed it!

@technosophos

Copy link
Copy Markdown
Member

Merged! Thanks. Are you interested in us keeping you in the loop if any issues arise from this?

@technosophos
technosophos merged commit 2eed3f0 into helm:master Oct 20, 2016
@databus23

databus23 commented Oct 20, 2016 •

Copy link
Copy Markdown
Contributor Author

@technosophos Thanks for merging and yeah, let me know if something breaks because of this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants