Merge pull request #8588 from afbjorklund/preload-crio-2
Use preloaded tarball for cri-o container runtimepull/8744/head
commit
24fa6280dc
|
@ -370,7 +370,7 @@ func containerdImagesPreloaded(runner command.Runner, images []string) bool {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
type criImages struct {
|
type crictlImages struct {
|
||||||
Images []struct {
|
Images []struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
RepoTags []string `json:"repoTags"`
|
RepoTags []string `json:"repoTags"`
|
||||||
|
@ -381,7 +381,7 @@ func containerdImagesPreloaded(runner command.Runner, images []string) bool {
|
||||||
} `json:"images"`
|
} `json:"images"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var jsonImages criImages
|
var jsonImages crictlImages
|
||||||
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
|
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")
|
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")
|
||||||
|
|
|
@ -283,7 +283,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
type criImages struct {
|
type crictlImages struct {
|
||||||
Images []struct {
|
Images []struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
RepoTags []string `json:"repoTags"`
|
RepoTags []string `json:"repoTags"`
|
||||||
|
@ -294,7 +294,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
|
||||||
} `json:"images"`
|
} `json:"images"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var jsonImages criImages
|
var jsonImages crictlImages
|
||||||
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
|
err = json.Unmarshal(rr.Stdout.Bytes(), &jsonImages)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")
|
glog.Errorf("failed to unmarshal images, will assume images are not preloaded")
|
||||||
|
@ -322,7 +322,7 @@ func crioImagesPreloaded(runner command.Runner, images []string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
glog.Infof("all images are preloaded for crio runtime.")
|
glog.Infof("all images are preloaded for cri-o runtime.")
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue