Skip to content

Commit

Permalink
Use preloaded tarball for cri-o container runtime
Browse files Browse the repository at this point in the history
Pretty much the same as containerd, minus Restart
  • Loading branch information
afbjorklund committed Jul 21, 2020
1 parent aaebd88 commit 59bf848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/cruntime/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func containerdImagesPreloaded(runner command.Runner, images []string) bool {
if err != nil {
return false
}
type criImages struct {
type crictlImages struct {
Images []struct {
ID string `json:"id"`
RepoTags []string `json:"repoTags"`
Expand All @@ -381,7 +381,7 @@ func containerdImagesPreloaded(runner command.Runner, images []string) bool {
} `json:"images"`
}

var jsonImages criImages
var jsonImages crictlImages
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
if err != nil {
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")
Expand Down
6 changes: 3 additions & 3 deletions pkg/minikube/cruntime/crio.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
if err != nil {
return false
}
type criImages struct {
type crictlImages struct {
Images []struct {
ID string `json:"id"`
RepoTags []string `json:"repoTags"`
Expand All @@ -294,7 +294,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
} `json:"images"`
}

var jsonImages criImages
var jsonImages crictlImages
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
if err != nil {
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")
Expand Down Expand Up @@ -322,7 +322,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
return false
}
}
glog.Infof("all images are preloaded for crio runtime.")
glog.Infof("all images are preloaded for cri-o runtime.")
return true
}

Expand Down

0 comments on commit 59bf848

Please sign in to comment.