Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateSizeInMB(humanReadableSize string) int
- func ChownR(path string, uid, gid int) error
- func FindAndSet(path string, c interface{}, value string) error
- func GenerateCACert(certPath, keyPath string, name string) error
- func GenerateSignedCert(certPath, keyPath, cn string, ips []net.IP, alternateDNS []string, ...) error
- func GetAlternateDNS(domain string) []string
- func GetBinaryDownloadURL(version, platform string) string
- func GetDNSIP(serviceCIDR string) (net.IP, error)
- func GetServiceClusterIP(serviceCIDR string) (net.IP, error)
- func MaybeChownDirRecursiveToMinikubeUser(dir string) error
- type DefaultDownloader
- func (f DefaultDownloader) CacheMinikubeISOFromURL(url string) error
- func (f DefaultDownloader) GetISOCacheFilepath(isoURL string) string
- func (f DefaultDownloader) GetISOFileURI(isoURL string) string
- func (f DefaultDownloader) IsMinikubeISOCached(isoURL string) bool
- func (f DefaultDownloader) ShouldCacheMinikubeISO(isoURL string) bool
- type ISODownloader
Constants ¶
const ( APIServerPort = 8443 DefaultDNSDomain = "cluster.local" )
These constants are used by both minikube
Variables ¶
var DefaultLegacyAdmissionControllers = append([]string{"Initializers"}, DefaultV114AdmissionControllers...)
DefaultLegacyAdmissionControllers are admission controllers we include with Kubernetes <1.14.0
var DefaultProgressBar getter.ProgressTracker = &progressBar{}
DefaultProgressBar is the default cheggaaa progress bar
var DefaultV114AdmissionControllers = []string{
"NamespaceLifecycle",
"LimitRanger",
"ServiceAccount",
"DefaultStorageClass",
"DefaultTolerationSeconds",
"NodeRestriction",
"MutatingAdmissionWebhook",
"ValidatingAdmissionWebhook",
"ResourceQuota",
}
DefaultV114AdmissionControllers are admission controllers we default to in v1.14.x
Functions ¶
func CalculateSizeInMB ¶ added in v1.3.0
CalculateSizeInMB returns the number of MB in the human readable string
func FindAndSet ¶ added in v0.11.0
FindAndSet sets the nested value.
func GenerateCACert ¶ added in v0.6.0
GenerateCACert generates a CA certificate and RSA key for a common name
func GenerateSignedCert ¶ added in v0.6.0
func GenerateSignedCert(certPath, keyPath, cn string, ips []net.IP, alternateDNS []string, signerCertPath, signerKeyPath string) error
GenerateSignedCert generates a signed certificate and key
func GetAlternateDNS ¶
GetAlternateDNS returns a list of alternate names for a domain
func GetBinaryDownloadURL ¶ added in v0.26.0
GetBinaryDownloadURL returns a suitable URL for the platform
func GetServiceClusterIP ¶ added in v0.24.0
GetServiceClusterIP returns the first IP of the ServiceCIDR
func MaybeChownDirRecursiveToMinikubeUser ¶ added in v0.21.0
MaybeChownDirRecursiveToMinikubeUser changes ownership of a dir, if requested
Types ¶
type DefaultDownloader ¶ added in v0.16.0
type DefaultDownloader struct{}
DefaultDownloader is the default ISODownloader
func (DefaultDownloader) CacheMinikubeISOFromURL ¶ added in v0.16.0
func (f DefaultDownloader) CacheMinikubeISOFromURL(url string) error
CacheMinikubeISOFromURL downloads the ISO, if it doesn't exist in cache
func (DefaultDownloader) GetISOCacheFilepath ¶ added in v0.17.0
func (f DefaultDownloader) GetISOCacheFilepath(isoURL string) string
GetISOCacheFilepath returns the path of an ISO in the local cache
func (DefaultDownloader) GetISOFileURI ¶ added in v0.16.0
func (f DefaultDownloader) GetISOFileURI(isoURL string) string
GetISOFileURI gets the local destination for a remote source
func (DefaultDownloader) IsMinikubeISOCached ¶ added in v0.17.0
func (f DefaultDownloader) IsMinikubeISOCached(isoURL string) bool
IsMinikubeISOCached returns if an ISO exists in the local cache
func (DefaultDownloader) ShouldCacheMinikubeISO ¶ added in v0.17.0
func (f DefaultDownloader) ShouldCacheMinikubeISO(isoURL string) bool
ShouldCacheMinikubeISO returns if we need to download the ISO