subnetport

package
v0.0.0-...-aba7421 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 32 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, subnetPortService *subnetport.SubnetPortService, subnetService *subnet.SubnetService, vpcService *vpc.VPCService)

Types

type SubnetPortReconciler

type SubnetPortReconciler struct {
	client.Client
	Scheme            *apimachineryruntime.Scheme
	SubnetPortService *subnetport.SubnetPortService
	SubnetService     servicecommon.SubnetServiceProvider
	VPCService        servicecommon.VPCServiceProvider
	Recorder          record.EventRecorder
}

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