Skip to content

Add Gzip Compression Option for User Data #649

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

furkatgofurov7
Copy link
Contributor

What this PR does / why we need it:
This PR introduces a new boolean field, gzipUserData, in the RKE2ConfigSpec, allowing users to enable gzip compression for cloud-init user data in the RKE2 bootstrap process. This change is based on this commit, where gzip compression was controlled via a custom annotation. The difference is, this solution utilizes a simpler approach based on new boolean field.

The new gzipUserData field allows users to enable gzip compression for user data optionally. Few things to highlight:

  • Users can now opt in to gzip compression based on their infrastructure requirements. This is controlled via the new gzipUserData boolean field in the RKE2ConfigSpec.
  • By default, gzipUserData is set to false, ensuring existing configurations are not affected unless explicitly enabled by the user.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #639

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@furkatgofurov7 furkatgofurov7 added area/bootstrap Indicates an issue or PR related to the bootstrap provider kind/feature labels May 13, 2025
@furkatgofurov7 furkatgofurov7 force-pushed the support-gzip-user-data branch 2 times, most recently from 625a518 to 3adebe0 Compare May 14, 2025 08:59
@zioc
Copy link

zioc commented May 14, 2025

Thanks for accepting this feature request and taking care of the implementation.

Could you also add support for compression on ignition-based system as discussed in the issue: #639 (comment)

@furkatgofurov7 furkatgofurov7 force-pushed the support-gzip-user-data branch 2 times, most recently from 4a5be12 to 31b8cb1 Compare May 14, 2025 13:49
@furkatgofurov7 furkatgofurov7 force-pushed the support-gzip-user-data branch from d86ba39 to b6d73a2 Compare May 23, 2025 09:55
@furkatgofurov7 furkatgofurov7 force-pushed the support-gzip-user-data branch from b6d73a2 to 3737458 Compare May 23, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Indicates an issue or PR related to the bootstrap provider kind/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding an option to gzip user-data
2 participants