package
1.13.0-alpha.1
Repository: https://github.com/clickyotomy/kubernetes.git
Documentation: pkg.go.dev
# Functions
AnyConfigFileAndDefaultsToInternal reads either a InitConfiguration or JoinConfiguration and unmarshals it.
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.
JoinConfigFileAndDefaultsToInternalConfig.
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.
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 configuration values for the InitConfiguration object.
SetInitDynamicDefaults checks and sets configuration values for the InitConfiguration 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.