kubernetes/cmd/kubeadm/app/phases/upgrade/compute_test.go

type fakeVersionGetter

var _

// ClusterVersion gets a fake API server version
func (f *fakeVersionGetter) ClusterVersion() (string, *versionutil.Version, error) {}

// KubeadmVersion gets a fake kubeadm version
func (f *fakeVersionGetter) KubeadmVersion() (string, *versionutil.Version, error) {}

// VersionFromCILabel gets fake latest versions from CI
func (f *fakeVersionGetter) VersionFromCILabel(ciVersionLabel, _ string) (string, *versionutil.Version, error) {}

// KubeletVersions should return a map with a version and a list of node names that describes how many kubelets there are for that version
func (f *fakeVersionGetter) KubeletVersions() (map[string][]string, error) {}

// ComponentVersions should return a map with a version and a list of node names that describes how many a given control-plane components there are for that version
func (f *fakeVersionGetter) ComponentVersions(name string) (map[string][]string, error) {}

const fakeCurrentEtcdVersion

func getEtcdVersion(v *versionutil.Version) string {}

const fakeCurrentCoreDNSVersion

func TestGetAvailableUpgrades(t *testing.T) {}

func TestKubeletUpgrade(t *testing.T) {}

func TestGetBranchFromVersion(t *testing.T) {}

func TestGetSuggestedEtcdVersion(t *testing.T) {}

func newMockClientForTest(t *testing.T, dnsName string, dnsVersion string, multiDNS bool) *clientsetfake.Clientset {}