Documentation ¶
Index ¶
- func GetAPIEndpointsFromConfigMap(client clientset.Interface) ([]string, error)
- func GetClusterConfiguration(client clientset.Interface) (*kubeadmapi.InitConfiguration, error)
- func GetCurrentClusterVersion(client clientset.Interface) (*version.Version, error)
- func GetKubeadmApisVersion(kubernetesVersion *version.Version) string
- func RemoveAPIEndpointFromConfigMap(client clientset.Interface, node *v1.Node) error
- func UpdateClusterConfigurationWithClusterVersion(initCfg *kubeadmapi.InitConfiguration, clusterVersion *version.Version)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIEndpointsFromConfigMap ¶
GetAPIEndpointsFromConfigMap returns the api endpoint held in the config map
func GetClusterConfiguration ¶ added in v0.8.0
func GetClusterConfiguration(client clientset.Interface) (*kubeadmapi.InitConfiguration, error)
GetClusterConfiguration returns the cluster configuration from the `kubeadm-config` ConfigMap
func GetCurrentClusterVersion ¶ added in v0.6.0
GetCurrentClusterVersion returns the current cluster version
func GetKubeadmApisVersion ¶ added in v0.9.0
GetKubeadmApisVersion returns the api version to use in the kubeadm-init.conf
func RemoveAPIEndpointFromConfigMap ¶
RemoveAPIEndpointFromConfigMap removes api endpoints from the config map
func UpdateClusterConfigurationWithClusterVersion ¶ added in v1.2.0
func UpdateClusterConfigurationWithClusterVersion(initCfg *kubeadmapi.InitConfiguration, clusterVersion *version.Version)
UpdateClusterConfigurationWithClusterVersion allows us to set certain configurations during init, but also during upgrades. The configuration that we put here will be consistently set to newly created configurations, and when we upgrade a cluster.
Types ¶
This section is empty.