package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/kubernetes.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
BytesToInitConfiguration converts a byte slice to an internal, defaulted and validated InitConfiguration 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.
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.
FetchInitConfigurationFromCluster fetches configuration from a ConfigMap in the cluster.
GetClusterStatus returns the kubeadm cluster status read from the kubeadm-config ConfigMap.
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, defaultversionedcfg will always get overridden.
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.
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.
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 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.
UnmarshalClusterStatus takes raw ConfigMap.Data and converts it to a ClusterStatus 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.