Skip to content
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

Adding OS version to Crane for better Windows support. #1173

Merged

Conversation

phillipsj
Copy link
Contributor

Windows images present some unique challenges and one of those challenges is being able to pull a specific OS version. This especially comes into play when working with a manifest like the k8s.gcr.io/pause:3.6 which doesn't offer tags specific to Windows OS version.

Here is an example use case:

crane pull --platform windows/amd64 --osversion 10.0.17763.2114 k8s.gcr.io/pause:3.6 windows-1809.tar

Without the version specified Windows Server 2022 would have been pulled.

Windows images present some unique challenges and one of those challenges is being able to pull a specific OS version. This especially comes into play when working with a manifest like the k8s.gcr.io/pause:3.6 which doesn't offer tags specific to Windows OS version. 

Here is an example use case:

crane pull --platform windows/amd64 --osversion 10.0.17763.2114 k8s.gcr.io/pause:3.6 windows-1809.tar

Without the version specified Windows Server 2022 would have been pulled.

Signed-off-by: Jamie Phillips <[email protected]>
Generating the docs after adding the CLI flag.

Signed-off-by: Jamie Phillips <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2021

Codecov Report

Merging #1173 (a488903) into main (5c9c442) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1173      +/-   ##
==========================================
+ Coverage   75.22%   75.24%   +0.01%     
==========================================
  Files         108      108              
  Lines        7852     7857       +5     
==========================================
+ Hits         5907     5912       +5     
  Misses       1379     1379              
  Partials      566      566              
Impacted Files Coverage Δ
pkg/v1/remote/index.go 71.35% <100.00%> (ø)
pkg/v1/mutate/mutate.go 72.43% <0.00%> (+0.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5c9c442...a488903. Read the comment docs.

Copy link
Collaborator

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution!

Copy link

@nickgerace nickgerace left a comment

Choose a reason for hiding this comment

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

🚀

(just giving a teammate review :) )

@imjasonh imjasonh merged commit 6cb23fb into google:main Nov 10, 2021
@phillipsj phillipsj deleted the feature/add-os-version-to-default-options branch November 10, 2021 21:11
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