Skip to content

Commit 24fa628

Browse files
authored
Merge pull request #8588 from afbjorklund/preload-crio-2
Use preloaded tarball for cri-o container runtime
2 parents 280c251 + 59bf848 commit 24fa628

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/minikube/cruntime/containerd.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func containerdImagesPreloaded(runner command.Runner, images []string) bool {
370370
if err != nil {
371371
return false
372372
}
373-
type criImages struct {
373+
type crictlImages struct {
374374
Images []struct {
375375
ID string `json:"id"`
376376
RepoTags []string `json:"repoTags"`
@@ -381,7 +381,7 @@ func containerdImagesPreloaded(runner command.Runner, images []string) bool {
381381
} `json:"images"`
382382
}
383383

384-
var jsonImages criImages
384+
var jsonImages crictlImages
385385
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
386386
if err != nil {
387387
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")

pkg/minikube/cruntime/crio.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
283283
if err != nil {
284284
return false
285285
}
286-
type criImages struct {
286+
type crictlImages struct {
287287
Images []struct {
288288
ID string `json:"id"`
289289
RepoTags []string `json:"repoTags"`
@@ -294,7 +294,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
294294
} `json:"images"`
295295
}
296296

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

0 commit comments

Comments
 (0)