feat: add image volume archive function for use as mount - #5235
Open
a1994sc wants to merge 21 commits into
Open
Conversation
Signed-off-by: Allen Conlon <software@conlon.dev>
✅ Deploy Preview for zarf-docs canceled.
|
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Contributor
Author
|
Some code was generated with Claude, Sonnet 5, though a human verified the code. |
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
…create Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
a1994sc
force-pushed
the
feature/image-volume-create
branch
from
August 20, 2026 22:11
2c0320d to
e1d8716
Compare
a1994sc
marked this pull request as ready for review
August 20, 2026 22:26
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
Signed-off-by: Allen Conlon <software@conlon.dev>
a1994sc
commented
Aug 24, 2026
| // GetRootArchitectureCobraCompression returns the valid --architecture | ||
| // values as "value\tdescription" pairs, ready to return from a cobra | ||
| // RegisterFlagCompletionFunc callback for shell tab completion. | ||
| func GetRootArchitectureCobraCompression() []string { |
Contributor
Author
There was a problem hiding this comment.
Realized that this is a bad function name.... I will update it soon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds
zarf dev image-volume-archive(aliasiva), a dev command that packs a directory of files into a container image usable as a volume mount by containerd, cri-o, and docker.Given a directory and an image reference, it:
gzip,zstd, or uncompressed)--max-layers(default 127), batching files several-per-layer once the directory holds more files than the capdocker load/ctr image importcompatible) via-O/--output, defaulting to a filename derived from the image reference--layer-compression,--platform-os,--max-layers, and the root--architectureflagNew packages:
src/pkg/zoci/image: builds the layered OCI image (Volume, layer/diff ID/compression handling, platform validation)src/pkg/zoci/archive: read-onlycontent.Providerover an OCI store for tar export, plusImageRefToTar/ValidateFileEndsWithTarhelpers for deriving and validating the output pathRelated Issue
Relates to #4124
Checklist before merging