helpers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalicoCNI

func CalicoCNI() string

func CanalCNI

func CanalCNI() string

func ContainsFinalizer

func ContainsFinalizer(slice []string, s string) bool

func CordonDrainAndDeleteNode added in v0.1.5

func CordonDrainAndDeleteNode(kubeconfig string, vmName string) error

func FlannelCNI

func FlannelCNI() string

func GenerateRandomHexString

func GenerateRandomHexString(length int) string

generateRandomHexString is a convenience function for generating random strings of an arbitrary length.

func GetKubeClient

func GetKubeClient(kubeconfig string) (client.Client, error)

func GetKubernetesVersion

func GetKubernetesVersion(version string) (string, error)

func GetLatestUpgradeKubernetesVersion

func GetLatestUpgradeKubernetesVersion(version string) (string, error)

func GetStableUpgradeKubernetesVersion

func GetStableUpgradeKubernetesVersion(version string) (string, error)

func IsNodeUpdated added in v0.1.5

func IsNodeUpdated(kclient client.Client, nodeName string, kubernetesVersion string) (bool, error)

func KuberouterCNI

func KuberouterCNI() string

func PreRequisitesInstallScript

func PreRequisitesInstallScript(kubernetesVersion string) string

func Recover

func Recover()

func RemoveFinalizer

func RemoveFinalizer(slice []string, s string) (result []string)

func RomanaCNI

func RomanaCNI() string

func WaitForNodeVersionReady added in v0.1.4

func WaitForNodeVersionReady(kclient client.Client, nodeName string, kubernetesVersion string) error

func WaitForNodesReady

func WaitForNodesReady(kclient client.Client, nodeName string, nodeCount int) error

Types

type RestClientGetter

type RestClientGetter struct {
	Config clientcmd.ClientConfig
}

func (*RestClientGetter) ToDiscoveryClient

func (r *RestClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*RestClientGetter) ToRESTConfig

func (r *RestClientGetter) ToRESTConfig() (*rest.Config, error)

func (*RestClientGetter) ToRESTMapper

func (r *RestClientGetter) ToRESTMapper() (meta.RESTMapper, error)

func (*RestClientGetter) ToRawKubeConfigLoader

func (r *RestClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig

Jump to

Keyboard shortcuts

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