You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change refactors beginDownloadKicBaseImage() a bit to
achieve a more streamlined flow of logic, combining
redundant blocks.
Signed-off-by: Michael Adam <[email protected]>
klog.Infof("successfully loaded and using %s from cached tarball", img)
176
175
returnnil
177
176
}
177
+
klog.Infof("failed to download %s, will try fallback image if available: %v", img, err)
178
178
}
179
-
klog.Infof("failed to download %s, will try fallback image if available: %v", img, err)
180
-
}
181
-
// second if we failed to download any fallback image
182
-
// that means probably all registries are blocked by network issues
183
-
// we can try to download the image from minikube release page
184
-
185
-
// if we reach here, that means the user cannot have access to any docker registry
186
-
// this means the user is very likely to have a network issue
187
-
// downloading from github via http is the last resort, and we should remind the user
188
-
// that he should at least get access to github
189
-
// print essential warnings
190
-
out.WarningT("minikube cannot pull kicbase image from any docker registry, and is trying to download kicbase tarball from github release page via HTTP.")
191
-
out.WarningT("It's very likely that you have an internet issue. Please ensure that you can access the internet at least via HTTP, directly or with proxy. Currently your proxy configuration is:")
// second if we failed to download any fallback image
180
+
// that means probably all registries are blocked by network issues
181
+
// we can try to download the image from minikube release page
182
+
183
+
// if we reach here, that means the user cannot have access to any docker registry
184
+
// this means the user is very likely to have a network issue
185
+
// downloading from github via http is the last resort, and we should remind the user
186
+
// that he should at least get access to github
187
+
// print essential warnings
188
+
out.WarningT("minikube cannot pull kicbase image from any docker registry, and is trying to download kicbase tarball from github release page via HTTP.")
189
+
out.WarningT("It's very likely that you have an internet issue. Please ensure that you can access the internet at least via HTTP, directly or with proxy. Currently your proxy configuration is:")
0 commit comments