-
Notifications
You must be signed in to change notification settings - Fork 419
Introduce k0s airgap bundle-artifacts #5360
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
Conversation
This pull request has merge conflicts that need to be resolved. |
0ee98cf
to
eb54146
Compare
cmd/airgap/bundleartifacts.go
Outdated
return refs, nil | ||
} | ||
|
||
func parseArtifactRefsFromSeq(refs iter.Seq[string]) (collected []reference.Named, _ error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The _ error
kind of looks like the return value can be ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I can follow. What would you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not using named returns, I suppose, they are terrible :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO named returns kinda come in handy on occasions like this. I removed them, but that meant I had to duplicate the var declaration ¯\_(ツ)_/¯
This pull request has merge conflicts that need to be resolved. |
eb54146
to
40a4431
Compare
This pull request has merge conflicts that need to be resolved. |
40a4431
to
3e59986
Compare
This pull request has merge conflicts that need to be resolved. |
3e59986
to
95bc132
Compare
This pull request has merge conflicts that need to be resolved. |
95bc132
to
76dedab
Compare
4b64e51
to
2b6ce8e
Compare
This pull request has merge conflicts that need to be resolved. |
2b6ce8e
to
17b4e4f
Compare
This pull request has merge conflicts that need to be resolved. |
17b4e4f
to
2966858
Compare
2966858
to
1bba8f0
Compare
This pull request has merge conflicts that need to be resolved. |
1bba8f0
to
351e075
Compare
70965bd
to
d374052
Compare
This pull request has merge conflicts that need to be resolved. |
d374052
to
47877c4
Compare
This sub-command introduces a "k0s native" way to create airgap artifact bundles. The current way to do this requires either a Docker or containerd daemon. Even then, there are certain scenarios where the created bundles don't contain all the necessary tags, i.e. when images are referenced by both their tag and their digest. Signed-off-by: Tom Wieczorek <[email protected]>
Dog-food the new sub-command in the k0s build itself. Signed-off-by: Tom Wieczorek <[email protected]>
47877c4
to
1e6f791
Compare
Description
This sub-command introduces a "k0s native" way to create airgap artifact bundles. The current way to do this requires either a Docker or containerd daemon. Even then, there are certain scenarios where the created bundles don't contain all the necessary tags, i.e. when images are referenced by both their tag and their digest.
Replace image-bundler with k0s airgap bundle-artifacts. Dog-food the new sub-command in the k0s build itself.
Type of change
How Has This Been Tested?
Checklist: