Documentation ¶
Index ¶
- type Installer
- func (installer *Installer) CreateClusterParaTemplate(nodes []cloudprovider.Instance) *types.CreateClusterPara
- func (installer *Installer) GetInstallProgress() (*types.ClusterProgress, error)
- func (installer *Installer) Install(createClusterPara *types.CreateClusterPara) error
- func (installer *Installer) InstallInstaller(os, arch, version string) error
- func (installer *Installer) RunCMD(cmd string) (string, error)
- type TestTKE
- func (testTke *TestTKE) AddNode(clusterName string, workerNode cloudprovider.Instance) (machine *platformv1.Machine, err error)
- func (testTke *TestTKE) CancleUnschedulableNode(cls *platformv1.Cluster, nodeName string) (node *corev1.Node, err error)
- func (testTke *TestTKE) ClusterTemplate(nodes ...cloudprovider.Instance) *platformv1.Cluster
- func (testTke *TestTKE) CreateCluster() (cluster *platformv1.Cluster, err error)
- func (testTke *TestTKE) CreateClusterInternal(cls *platformv1.Cluster) (cluster *platformv1.Cluster, err error)
- func (testTke *TestTKE) CreateInstances(count int64) ([]cloudprovider.Instance, error)
- func (testTke *TestTKE) DeleteCluster(clusterName string) (err error)
- func (testTke *TestTKE) DeleteNode(machineName string) (err error)
- func (testTke *TestTKE) ImportCluster(host string, port int32, caCert []byte, token *string) (cluster *platformv1.Cluster, err error)
- func (testTke *TestTKE) K8sClient(cls *platformv1.Cluster) kubernetes.Interface
- func (testTke *TestTKE) ScaleDown(clsName string, ipsToBeRemoved []string) (cls *platformv1.Cluster, err error)
- func (testTke *TestTKE) ScaleUp(clsName string, nodes []cloudprovider.Instance) (cls *platformv1.Cluster, err error)
- func (testTke *TestTKE) UnscheduleNode(cls *platformv1.Cluster, nodeName string) (node *corev1.Node, err error)
- func (testTke *TestTKE) UpgradeCluster(clsName string, targetVersion string, mode platformv1.UpgradeMode, drain bool) (*platformv1.Cluster, error)
- func (testTke *TestTKE) WaitClusterToBeRunning(clusterName string) (cluster *platformv1.Cluster, err error)
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 ¶
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) 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) DeleteNode ¶
func (*TestTKE) ImportCluster ¶
func (*TestTKE) K8sClient ¶
func (testTke *TestTKE) K8sClient(cls *platformv1.Cluster) kubernetes.Interface
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) 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)
Click to show internal directories.
Click to hide internal directories.