vswitch

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: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Finalizer = "finalizer.managedresource.crossplane.io"
)

Variables

This section is empty.

Functions

func Setup

func Setup(mgr ctrl.Manager, o tjcontroller.Options) error

Setup adds a controller that reconciles Vswitch managed resources.

Types

type VswitchReconciler

type VswitchReconciler struct {
	client.Client
	Scheme        *runtime.Scheme
	DeleteTimeout time.Duration // DeleteTimeout 超时时间
}

func (*VswitchReconciler) Reconcile

func (r *VswitchReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err error)

Reconcile 只做删除超时的强制清理工作, 防止资源残留.

func (*VswitchReconciler) SetupWithManager

func (r *VswitchReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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