subnetport

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricResTypeSubnetPort = common.MetricResTypeSubnetPort
)

Functions

func StartSubnetPortController

func StartSubnetPortController(mgr ctrl.Manager, commonService servicecommon.Service)

Types

type SubnetPortReconciler

type SubnetPortReconciler struct {
	client.Client
	Scheme  *apimachineryruntime.Scheme
	Service *subnetport.SubnetPortService
}

SubnetPortReconciler reconciles a SubnetPort object

func (*SubnetPortReconciler) GarbageCollector

func (r *SubnetPortReconciler) GarbageCollector(cancel chan bool, timeout time.Duration)

GarbageCollector collect SubnetPort which has been removed from crd. cancel is used to break the loop during UT

func (*SubnetPortReconciler) GetSubnetPathForSubnetPort

func (r *SubnetPortReconciler) GetSubnetPathForSubnetPort(ctx context.Context, subnetPort *v1alpha1.SubnetPort) (string, error)

func (*SubnetPortReconciler) Reconcile

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

+kubebuilder:rbac:groups=nsx.vmware.com,resources=subnetports,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=nsx.vmware.com,resources=subnetports/status,verbs=get;update;patch +kubebuilder:rbac:groups=nsx.vmware.com,resources=subnetports/finalizers,verbs=update

func (*SubnetPortReconciler) SetupWithManager

func (r *SubnetPortReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*SubnetPortReconciler) Start

func (r *SubnetPortReconciler) Start(mgr ctrl.Manager) error

Start setup manager and launch GC

func (*SubnetPortReconciler) UpdateSubnetPortStatusConditions

func (r *SubnetPortReconciler) UpdateSubnetPortStatusConditions(ctx *context.Context, subnetPort *v1alpha1.SubnetPort, newConditions []v1alpha1.Condition)

Jump to

Keyboard shortcuts

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