-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Implement minikube image load command #10366
Conversation
/ok-to-test |
pkg/minikube/machine/cache_images.go
Outdated
@@ -61,6 +62,57 @@ func CacheImagesForBootstrapper(imageRepository string, version string, clusterB | |||
return nil | |||
} | |||
|
|||
// LoadImage loads the local image into the container runtime | |||
func LoadImage(profile, img string) 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.
how about we make this a re-usable function that Cache Add also uses same, so we don't have to maintain both Image Load and Cache Add ?
I suggest adding a --all label to "cache add" command so if that is passed it will load image to all clusters if not, it will add it to the active cluster.
Image Load should be an alias of "Cache Add"
in a way that if user says
mnikube imge load alpne --all it will load the image to all clusters
and if not it will load it to current cluster.
kvm2 Driver Times for Minikube (PR 10366): 30.2s 27.7s 24.5s Averages Time Per Log
|
kvm2 Driver Times for Minikube (PR 10366): 65.2s 65.5s 66.2s Averages Time Per Log
docker Driver Times for Minikube (PR 10366): 24.9s 24.5s 25.5s Averages Time Per Log
|
kvm2 Driver Times for Minikube (PR 10366): 66.0s 66.3s 67.3s Averages Time Per Log
docker Driver Times for Minikube (PR 10366): 26.2s 26.3s 25.2s Averages Time Per Log
|
kvm2 Driver Times for Minikube (PR 10366): 67.6s 64.7s 66.4s Averages Time Per Log
docker Driver Times for Minikube (PR 10366): 24.2s 22.8s 24.0s Averages Time Per Log
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, priyawadhwa The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
kvm2 Driver Times for Minikube (PR 10366): 68.8s 67.2s 65.8s Averages Time Per Log
docker Driver Times for Minikube (PR 10366): 25.7s 27.4s 25.9s Averages Time Per Log
|
And add an integration test for it.
closes #10365