package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
BytesToInitConfiguration converts a byte slice to an internal, defaulted and validated InitConfiguration object.
ChooseAPIServerBindAddress is a wrapper for netutil.ResolveBindAddress that also handles the case where no default routes were found and an IP for the API server could not be obtained.
DefaultedInitConfiguration takes a versioned init config (often populated by flags), defaults it and converts it into internal InitConfiguration.
DefaultedJoinConfiguration takes a versioned JoinConfiguration (usually filled in by command line parameters), defaults it, converts it to internal and validates it.
DefaultedResetConfiguration takes a versioned ResetConfiguration (usually filled in by command line parameters), defaults it, converts it to internal and validates it.
DefaultedStaticInitConfiguration returns the internal InitConfiguration with static defaults.
DefaultedUpgradeConfiguration takes a versioned UpgradeConfiguration (usually filled in by command line parameters), defaults it, converts it to internal and validates it.
DocMapToUpgradeConfiguration converts documentMap to an internal, defaulted and validated UpgradeConfiguration object.
FetchInitConfigurationFromCluster fetches configuration from a ConfigMap in the cluster.
GetNodeName uses 3 different approaches for getting the node name.
GetNodeRegistration returns the nodeRegistration for the current node.
LoadInitConfigurationFromFile loads a supported versioned InitConfiguration from a file, converts it into internal config, defaults it and verifies it.
LoadJoinConfigurationFromFile loads versioned JoinConfiguration from file, converts it to internal, defaults and validates it.
LoadOrDefaultInitConfiguration takes a path to a config file and a versioned configuration that can serve as the default config If cfgPath is specified, the versioned configs will always get overridden with the one in the file (specified by cfgPath).
LoadOrDefaultJoinConfiguration 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.
LoadOrDefaultResetConfiguration 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.
LoadOrDefaultUpgradeConfiguration 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.
LoadResetConfigurationFromFile loads versioned ResetConfiguration from file, converts it to internal, defaults and validates it.
LoadUpgradeConfigurationFromFile loads UpgradeConfiguration from a file.
LowercaseSANs can be used to force all SANs to be lowercase so it passes IsDNS1123Subdomain.
MarshalInitConfigurationToBytes marshals the internal InitConfiguration object to bytes.
MarshalKubeadmConfigObject marshals an Object registered in the kubeadm scheme.
MigrateOldConfig migrates an old configuration from a byte slice into a new one (returned again as a byte slice).
NormalizeKubernetesVersion resolves version labels, sets alternative image registry if requested for CI builds, and validates minimal version that kubeadm SetInitDynamicDefaults supports.
SetAPIEndpointDynamicDefaults checks and sets configuration values for the APIEndpoint object.
SetBootstrapTokensDynamicDefaults checks and sets configuration values for the BootstrapTokens object.
SetClusterDynamicDefaults checks and sets values for the ClusterConfiguration object.
SetInitDynamicDefaults checks and sets configuration values for the InitConfiguration object.
SetJoinControlPlaneDefaults checks and sets configuration values for the JoinControlPlane object.
SetJoinDynamicDefaults checks and sets configuration values for the JoinConfiguration object.
SetNodeRegistrationDynamicDefaults checks and sets configuration values for the NodeRegistration object.
SetResetDynamicDefaults checks and sets configuration values for the ResetConfiguration object.
ValidateConfig takes a byte slice containing a kubeadm configuration and performs conversion to internal types and validation.
VerifyAPIServerBindAddress can be used to verify if a bind address for the API Server is 0.0.0.0, in which case this address is not valid and should not be used.
# Variables
PlaceholderToken is only set statically to make kubeadm not randomize the token on every run.
# Structs
LoadOrDefaultConfigurationOptions holds the common LoadOrDefaultConfiguration options.