kubeadm

package
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIEndpointsFromConfigMap

func GetAPIEndpointsFromConfigMap(client clientset.Interface) ([]string, error)

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

func GetCurrentClusterVersion(client clientset.Interface) (*version.Version, error)

GetCurrentClusterVersion returns the current cluster version

func GetKubeadmApisVersion added in v0.9.0

func GetKubeadmApisVersion(kubernetesVersion *version.Version) string

GetKubeadmApisVersion returns the api version to use in the kubeadm-init.conf

func RemoveAPIEndpointFromConfigMap

func RemoveAPIEndpointFromConfigMap(client clientset.Interface, node *corev1.Node) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL