Add a TODO note to remove the imageRepository check once preload is accessible

pull/7707/head
Prasad Katti 2020-04-16 08:19:14 -07:00
parent 06fadf8213
commit c75e3936bf
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ const (
// BeginCacheKubernetesImages caches images required for kubernetes version in the background
func beginCacheKubernetesImages(g *errgroup.Group, imageRepository string, k8sVersion string, cRuntime string) {
// TODO: remove imageRepository check once #7695 is fixed
if imageRepository == "" && download.PreloadExists(k8sVersion, cRuntime) {
glog.Info("Caching tarball of preloaded images")
err := download.Preload(k8sVersion, cRuntime)