add exported funcs to check existance of preload to be called by outside minikube

pull/21605/head
Medya Ghazizadeh 2025-09-20 12:30:36 -07:00
parent b3b551fc8d
commit b733b8dc29
1 changed files with 10 additions and 0 deletions

View File

@ -168,6 +168,16 @@ var checkRemotePreloadExistsGitHub = func(k8sVersion, containerRuntime string) b
return remotePreloadExists(url)
}
// PreloadExistsGCS returns true if there is a preloaded tarball in GCS that can be used
func PreloadExistsGCS(k8sVersion, containerRuntime string) bool {
return checkRemotePreloadExistsGCS(k8sVersion, containerRuntime)
}
// PreloadExistsGH returns true if there is a preloaded tarball in GitHub releases that can be used
func PreloadExistsGH(k8sVersion, containerRuntime string) bool {
return checkRemotePreloadExistsGitHub(k8sVersion, containerRuntime)
}
// PreloadExists returns true if there is a preloaded tarball that can be used
func PreloadExists(k8sVersion, containerRuntime, driverName string, forcePreload ...bool) bool {
// TODO (#8166): Get rid of the need for this and viper at all