Skip to content

Conversation

@twz123
Copy link
Member

@twz123 twz123 commented Dec 3, 2025

Description

This is my old PoC on how to use ZIP archives for embedding, rebased on top of the current main branch. Note that cmd/foo and hack/unzip-files are just for experimenting and should be removed from the final PR, whereas hack/zip-files replaces hack/gen-bindata.

I've experimented a bit with different compression methods:

method k0s file size
gzip blob + offsets 254 MiB
ZIP/bzip2 248 MiB
ZIP/lzma 235 MiB
ZIP/zstd 233 MiB

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

How Has This Been Tested?

  • Manual test
  • Auto test added

Checklist

  • My code follows the style guidelines of this project
  • My commit messages are signed-off
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
@twz123 twz123 linked an issue Dec 3, 2025 that may be closed by this pull request
Signed-off-by: Tom Wieczorek <twieczorek@mirantis.com>
@twz123 twz123 force-pushed the zip-embedded-bins branch from b9dc1ac to 8ac8687 Compare December 4, 2025 08:05
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2026

The PR is marked as stale since no activity has been recorded in 30 days

@github-actions github-actions bot added the Stale label Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make k0s a true "self-extracting ZIP archive"

1 participant