tke

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

func InitInstaller

func InitInstaller(provider cloudprovider.Provider) *Installer

func (*Installer) CreateClusterParaTemplate

func (installer *Installer) CreateClusterParaTemplate(nodes []cloudprovider.Instance) *types.CreateClusterPara

func (*Installer) GetInstallProgress

func (installer *Installer) GetInstallProgress() (*types.ClusterProgress, error)

func (*Installer) Install

func (installer *Installer) Install(createClusterPara *types.CreateClusterPara) error

func (*Installer) InstallInstaller

func (installer *Installer) InstallInstaller(os, arch, version string) error

func (*Installer) RunCMD

func (installer *Installer) RunCMD(cmd string) (string, error)

type TestTKE

type TestTKE struct {
	TkeClient tkeclientset.Interface

	Clusters []*platformv1.Cluster
	// contains filtered or unexported fields
}

func Init

func Init(tkeClient tkeclientset.Interface, provider cloudprovider.Provider) *TestTKE

func (*TestTKE) AddNode

func (testTke *TestTKE) AddNode(clusterName string, workerNode cloudprovider.Instance) (machine *platformv1.Machine, err error)

func (*TestTKE) CancleUnschedulableNode

func (testTke *TestTKE) CancleUnschedulableNode(cls *platformv1.Cluster, nodeName string) (node *corev1.Node, err error)

func (*TestTKE) ClusterTemplate

func (testTke *TestTKE) ClusterTemplate(nodes ...cloudprovider.Instance) *platformv1.Cluster

func (*TestTKE) CreateCluster

func (testTke *TestTKE) CreateCluster() (cluster *platformv1.Cluster, err error)

func (*TestTKE) CreateClusterInternal

func (testTke *TestTKE) CreateClusterInternal(cls *platformv1.Cluster) (cluster *platformv1.Cluster, err error)

func (*TestTKE) CreateInstances

func (testTke *TestTKE) CreateInstances(count int64) ([]cloudprovider.Instance, error)

func (*TestTKE) DeleteCluster

func (testTke *TestTKE) DeleteCluster(clusterName string) (err error)

func (*TestTKE) DeleteNode

func (testTke *TestTKE) DeleteNode(machineName string) (err error)

func (*TestTKE) ImportCluster

func (testTke *TestTKE) ImportCluster(host string, port int32, caCert []byte, token *string) (cluster *platformv1.Cluster, err error)

func (*TestTKE) K8sClient

func (testTke *TestTKE) K8sClient(cls *platformv1.Cluster) kubernetes.Interface

func (*TestTKE) ScaleDown

func (testTke *TestTKE) ScaleDown(clsName string, ipsToBeRemoved []string) (cls *platformv1.Cluster, err error)

func (*TestTKE) ScaleUp

func (testTke *TestTKE) ScaleUp(clsName string, nodes []cloudprovider.Instance) (cls *platformv1.Cluster, err error)

ScaleUp note: nodes must share the same VIP with the existing nodes

func (*TestTKE) UnscheduleNode

func (testTke *TestTKE) UnscheduleNode(cls *platformv1.Cluster, nodeName string) (node *corev1.Node, err error)

func (*TestTKE) UpgradeCluster

func (testTke *TestTKE) UpgradeCluster(clsName string, targetVersion string, mode platformv1.UpgradeMode, drain bool) (*platformv1.Cluster, error)

func (*TestTKE) WaitClusterToBeRunning

func (testTke *TestTKE) WaitClusterToBeRunning(clusterName string) (cluster *platformv1.Cluster, err error)

Jump to

Keyboard shortcuts

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