config

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WantUpdateNotification                  = "WantUpdateNotification"
	ReminderWaitPeriodInHours               = "ReminderWaitPeriodInHours"
	WantReportError                         = "WantReportError"
	WantReportErrorPrompt                   = "WantReportErrorPrompt"
	WantKubectlDownloadMsg                  = "WantKubectlDownloadMsg"
	WantNoneDriverWarning                   = "WantNoneDriverWarning"
	MachineProfile                          = "profile"
	ShowDriverDeprecationNotification       = "ShowDriverDeprecationNotification"
	ShowBootstrapperDeprecationNotification = "ShowBootstrapperDeprecationNotification"
)

Variables

This section is empty.

Functions

func Get added in v0.12.0

func Get(name string) (string, error)

func GetMachineName added in v0.19.0

func GetMachineName() string

GetMachineName gets the machine name for the VM

Types

type Config added in v0.26.0

type Config struct {
	MachineConfig    MachineConfig
	KubernetesConfig KubernetesConfig
}

Config contains machine and k8s config

func Load added in v0.31.0

func Load() (*Config, error)

Load loads the kubernetes and machine config for the current machine

type KubernetesConfig added in v0.26.0

type KubernetesConfig struct {
	KubernetesVersion string
	NodeIP            string
	NodePort          int
	NodeName          string
	APIServerName     string
	APIServerNames    []string
	APIServerIPs      []net.IP
	DNSDomain         string
	ContainerRuntime  string
	CRISocket         string
	NetworkPlugin     string
	FeatureGates      string
	ServiceCIDR       string
	ExtraOptions      util.ExtraOptionSlice

	ShouldLoadCachedImages bool
	EnableDefaultCNI       bool
}

KubernetesConfig contains the parameters used to configure the VM Kubernetes.

type Loader added in v0.31.0

type Loader interface {
	LoadConfigFromFile(profile string) (*Config, error)
}

Loader loads the kubernetes and machine config based on the machine profile name

var DefaultLoader Loader = &simpleConfigLoader{}

type MachineConfig added in v0.26.0

type MachineConfig struct {
	MinikubeISO         string
	Memory              int
	CPUs                int
	DiskSize            int
	VMDriver            string
	ContainerRuntime    string
	HyperkitVpnKitSock  string   // Only used by the Hyperkit driver
	HyperkitVSockPorts  []string // Only used by the Hyperkit driver
	XhyveDiskDriver     string   // Only used by the xhyve driver
	DockerEnv           []string // Each entry is formatted as KEY=VALUE.
	InsecureRegistry    []string
	RegistryMirror      []string
	HostOnlyCIDR        string // Only used by the virtualbox driver
	HypervVirtualSwitch string
	KvmNetwork          string             // Only used by the KVM driver
	Downloader          util.ISODownloader `json:"-"`
	DockerOpt           []string           // Each entry is formatted as KEY=VALUE.
	DisableDriverMounts bool               // Only used by virtualbox and xhyve
	NFSShare            []string
	NFSSharesRoot       string
	UUID                string // Only used by hyperkit to restore the mac address
	GPU                 bool   // Only used by kvm2
	NoVTXCheck          bool   // Only used by virtualbox
}

MachineConfig contains the parameters used to start a cluster.

type MinikubeConfig added in v0.12.0

type MinikubeConfig map[string]interface{}

func ReadConfig added in v0.12.0

func ReadConfig() (MinikubeConfig, error)

ReadConfig reads in the JSON minikube config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL