Documentation ¶
Index ¶
- Variables
- func StartSubnetPortController(mgr ctrl.Manager, subnetPortService *subnetport.SubnetPortService, ...)
- type SubnetPortReconciler
- func (r *SubnetPortReconciler) GarbageCollector(cancel chan bool, timeout time.Duration)
- func (r *SubnetPortReconciler) GetSubnetPathForSubnetPort(ctx context.Context, subnetPort *v1alpha1.SubnetPort) (string, error)
- func (r *SubnetPortReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *SubnetPortReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *SubnetPortReconciler) Start(mgr ctrl.Manager) error
- func (r *SubnetPortReconciler) UpdateSubnetPortStatusConditions(ctx *context.Context, subnetPort *v1alpha1.SubnetPort, ...)
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)
Click to show internal directories.
Click to hide internal directories.