Documentation ¶
Index ¶
- func BytesToInternalConfig(b []byte) (*kubeadmapi.MasterConfiguration, error)
- func ConfigFileAndDefaultsToInternalConfig(cfgPath string, defaultversionedcfg *kubeadmapiv1alpha2.MasterConfiguration) (*kubeadmapi.MasterConfiguration, error)
- func NormalizeKubernetesVersion(cfg *kubeadmapi.MasterConfiguration) error
- func SetInitDynamicDefaults(cfg *kubeadmapi.MasterConfiguration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToInternalConfig ¶ added in v1.11.2
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 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 Master node
Types ¶
This section is empty.