package
1.14.0-alpha.1
Repository: https://github.com/micnncim/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BytesToInternalConfig converts a byte slice to an internal, defaulted and validated configuration object.
ChooseAPIServerBindAddress is a wrapper for netutil.ChooseBindAddress that also handles the case where no default routes were found and an IP for the API server could not be obatained.
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.
DetectUnsupportedVersion reads YAML bytes, extracts the TypeMeta information and errors out with an user-friendly message if the API spec is too old for this kubeadm version.
FetchConfigFromFileOrCluster fetches configuration required for upgrading your cluster from a file (which has precedence) or a ConfigMap in the cluster.
GetClusterStatus returns the kubeadm cluster status read from the kubeadm-config ConfigMap.
JoinConfigFileAndDefaultsToInternalConfig 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.
LowercaseSANs can be used to force all SANs to be lowercase so it passes IsDNS1123Subdomain.
MarshalClusterConfigurationToBytes marshals the internal ClusterConfiguration object to bytes.
MarshalInitConfigurationToBytes marshals the internal InitConfiguration object to bytes.
MarshalKubeadmConfigObject marshals an Object registered in the kubeadm scheme.
MigrateOldConfigFromFile migrates an old configuration from a file into a new one (returned as a byte slice).
NormalizeKubernetesVersion resolves version labels, sets alternative image registry if requested for CI builds, and validates minimal version that kubeadm SetInitDynamicDefaultssupports.
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.
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.