Documentation ¶
Index ¶
- func ConfigFileAndDefaultsToInternalConfig(cfgPath string, defaultversionedcfg *kubeadmapiext.MasterConfiguration) (*kubeadmapi.MasterConfiguration, error)
- func NormalizeKubernetesVersion(cfg *kubeadmapi.MasterConfiguration) error
- func SetInitDynamicDefaults(cfg *kubeadmapi.MasterConfiguration) error
- func TryLoadMasterConfiguration(cfgPath string, cfg *kubeadmapiext.MasterConfiguration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFileAndDefaultsToInternalConfig ¶
func ConfigFileAndDefaultsToInternalConfig(cfgPath string, defaultversionedcfg *kubeadmapiext.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.1
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
func TryLoadMasterConfiguration ¶
func TryLoadMasterConfiguration(cfgPath string, cfg *kubeadmapiext.MasterConfiguration) error
TryLoadMasterConfiguration tries to loads a Master configuration from the given file (if defined)
Types ¶
This section is empty.