config

package
v1.11.9-rancher1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToInternalConfig added in v1.11.0

func BytesToInternalConfig(b []byte) (*kubeadmapi.MasterConfiguration, error)

BytesToInternalConfig converts a byte array to an internal, defaulted and validated configuration object

func ConfigFileAndDefaultsToInternalConfig

func ConfigFileAndDefaultsToInternalConfig(cfgPath string, defaultversionedcfg *kubeadmapiv1alpha2.MasterConfiguration) (*kubeadmapi.MasterConfiguration, error)

ConfigFileAndDefaultsToInternalConfig takes a path to a config file and a versioned configuration that can serve as the default config If cfgPath is specified, defaultversionedcfg will always get overridden. Otherwise, the default config (often populated by flags) will be used. Then the external, versioned configuration is defaulted and converted to the internal type. Right thereafter, the configuration is defaulted again with dynamic values (like IP addresses of a machine, etc) Lastly, the internal config is validated and returned.

func FetchConfigFromFileOrCluster added in v1.11.0

func FetchConfigFromFileOrCluster(client clientset.Interface, w io.Writer, logPrefix, cfgPath string) (*kubeadmapi.MasterConfiguration, error)

FetchConfigFromFileOrCluster fetches configuration required for upgrading your cluster from a file (which has precedence) or a ConfigMap in the cluster

func LowercaseSANs added in v1.11.0

func LowercaseSANs(sans []string)

LowercaseSANs can be used to force all SANs to be lowercase so it passes IsDNS1123Subdomain

func NodeConfigFileAndDefaultsToInternalConfig added in v1.11.0

func NodeConfigFileAndDefaultsToInternalConfig(cfgPath string, defaultversionedcfg *kubeadmapiv1alpha2.NodeConfiguration) (*kubeadmapi.NodeConfiguration, error)

NodeConfigFileAndDefaultsToInternalConfig

func NormalizeKubernetesVersion added in v1.9.0

func NormalizeKubernetesVersion(cfg *kubeadmapi.MasterConfiguration) error

NormalizeKubernetesVersion resolves version labels, sets alternative image registry if requested for CI builds, and validates minimal version that kubeadm supports.

func SetInitDynamicDefaults

func SetInitDynamicDefaults(cfg *kubeadmapi.MasterConfiguration) error

SetInitDynamicDefaults checks and sets configuration values for the MasterConfiguration object

func SetJoinDynamicDefaults added in v1.11.0

func SetJoinDynamicDefaults(cfg *kubeadmapi.NodeConfiguration) error

SetJoinDynamicDefaults checks and sets configuration values for the NodeConfiguration object

Types

This section is empty.

Jump to

Keyboard shortcuts

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