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

support only load image apply mode #1857

Merged
merged 1 commit into from
Nov 15, 2022

Conversation

Stevent-fei
Copy link
Collaborator

Describe what this PR does / why we need it

In special scenarios, we want to load images to the specified registry in advance.

This PR try to support the above feature by do these things:

add apply mode flag
support only loadImage apply mode

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Nov 12, 2022

Codecov Report

Base: 21.65% // Head: 21.65% // No change to project coverage 👍

Coverage data is based on head (ade4521) compared to base (f9cc112).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1857   +/-   ##
=======================================
  Coverage   21.65%   21.65%           
=======================================
  Files          72       72           
  Lines        6586     6586           
=======================================
  Hits         1426     1426           
  Misses       4974     4974           
  Partials      186      186           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

if err != nil {
return err
}
if err := distributor.DistributeRegistry(infraDriver.GetHostIPList()[0], infraDriver.GetClusterRootfsPath()); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

if applyMode == common.ApplyModeLoadImage {
if err := distributor.DistributeRegistry(infraDriver.GetHostIPList()[0], infraDriver.GetClusterRootfsPath());err!=nil{}

return nil

}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it possible to implement the loadImage apply mode by the above few lines of code?

@starnop starnop merged commit 1440c38 into sealerio:main Nov 15, 2022
Stevent-fei added a commit to Stevent-fei/sealer that referenced this pull request Nov 17, 2022
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.

3 participants