Documentation ¶
Index ¶
- func DeleteContext(machineName string, configPath ...string) error
- func IsClusterInConfig(ip net.IP, clusterName string, configPath ...string) (bool, error)
- func PathFromEnv() string
- func PopulateFromSettings(cfg *Settings, apiCfg *api.Config) error
- func Port(clusterName string, configPath ...string) (int, error)
- func SetCurrentContext(name string, configPath ...string) error
- func UnsetCurrentContext(machineName string, configPath ...string) error
- func Update(kcs *Settings) error
- func UpdateIP(ip net.IP, machineName string, configPath ...string) (bool, error)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteContext ¶ added in v1.4.0
DeleteContext deletes the specified machine's kubeconfig context
func IsClusterInConfig ¶ added in v1.4.0
IsClusterInConfig verifies the ip stored in kubeconfig.
func PathFromEnv ¶ added in v1.4.0
func PathFromEnv() string
PathFromEnv gets the path to the first kubeconfig
func PopulateFromSettings ¶ added in v1.4.0
PopulateFromSettings populates an api.Config object with values from *Settings
func Port ¶ added in v1.4.0
Port returns the Port number stored for minikube in the kubeconfig specified
func SetCurrentContext ¶ added in v1.4.0
SetCurrentContext sets the kubectl's current-context
func UnsetCurrentContext ¶ added in v1.4.0
UnsetCurrentContext unsets the current-context from minikube to "" on minikube stop
Types ¶
type Settings ¶ added in v1.4.0
type Settings struct { // The name of the cluster for this context ClusterName string // ClusterServerAddress is the address of the kubernetes cluster ClusterServerAddress string // ClientCertificate is the path to a client cert file for TLS. ClientCertificate string // CertificateAuthority is the path to a cert file for the certificate authority. CertificateAuthority string // ClientKey is the path to a client key file for TLS. ClientKey string // Should the current context be kept when setting up this one KeepContext bool // Should the certificate files be embedded instead of referenced by path EmbedCerts bool // contains filtered or unexported fields }
Settings is the minikubes settings for kubeconfig
Click to show internal directories.
Click to hide internal directories.