common

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexAliyunPoolByUID         = "IndexAliyunPoolByUID"
	IndexAliyunControlPlaneByUID = "IndexAliyunControlPlaneByUID"
	IndexVSwitchByAliyunPoolUID  = "IndexVSwitchByAliyunPoolUID"
	IndexNodePoolByAliyunPoolUID = "IndexNodePoolByAliyunPoolUID"
)

Variables

View Source
var ErrorTimeout error = errors.New("delete timeout")

Functions

func ReconcileRemoveVPC

func ReconcileRemoveVPC(
	ctx context.Context, log logr.Logger,
	kubeclient client.Client, aliyunVPC *commonapi.VPC,
	timeout time.Duration,
) (err error)

ReconcileRemoveVPC ...

func ReconcileRemoveVSwitch

func ReconcileRemoveVSwitch(
	ctx context.Context, log logr.Logger,
	kubeclient client.Client, vSwitches *commonapi.VSwitches,
	timeout time.Duration,
) (err error)

func ReconcileVPC

func ReconcileVPC(
	ctx context.Context, log logr.Logger,
	kubeclient client.Client, object runtime.Object, keyName string,
	aliyunVPC *commonapi.VPC,
	resourceSpec xpv1.ResourceSpec,
) (vpcID string, err error)

reconcileVPC ...

@param object: 一般为 aliyunManagedControlPlane 对象 @param keyName: .spec.clusterName 信息

func ReconcileVSwitch

func ReconcileVSwitch(
	ctx context.Context, log logr.Logger,
	kubeclient client.Client, object runtime.Object, keyName string,
	resourceSpec xpv1.ResourceSpec,
	vSwitches *commonapi.VSwitches, vpcID string,
) (vswitchIDs []*string, err error)

ReconcileVSwitch ...

@param object: aliyunManagedControlPlane 或 aliyunManagedMachinePool 对象 @param keyName: ACK集群名称或NodePool名称

Types

This section is empty.

Jump to

Keyboard shortcuts

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