vpc

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultNormal            = common.ResultNormal
	ResultRequeue           = common.ResultRequeue
	ResultRequeueAfter5mins = common.ResultRequeueAfter5mins
	MetricResType           = common.MetricResTypeVPC
)
View Source
var VPCNetworkConfigurationPredicate = predicate.Funcs{
	CreateFunc: func(e event.CreateEvent) bool {
		return true
	},
	UpdateFunc: func(e event.UpdateEvent) bool {
		return true
	},
	DeleteFunc: func(e event.DeleteEvent) bool {
		return false
	},
	GenericFunc: func(genericEvent event.GenericEvent) bool {
		return false
	},
}

Functions

func StartVPCController

func StartVPCController(mgr ctrl.Manager, commonService commonservice.Service)

Types

type VPCNetworkConfigurationHandler

type VPCNetworkConfigurationHandler struct {
	Client client.Client
	// contains filtered or unexported fields
}

func (*VPCNetworkConfigurationHandler) Create

func (*VPCNetworkConfigurationHandler) Delete

func (*VPCNetworkConfigurationHandler) Generic

func (*VPCNetworkConfigurationHandler) Update

type VPCReconciler

type VPCReconciler struct {
	Client  client.Client
	Scheme  *apimachineryruntime.Scheme
	Service *vpc.VPCService
}

VPCReconciler VPCReconcile reconciles a VPC object

func (*VPCReconciler) GarbageCollector

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

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

func (*VPCReconciler) Reconcile

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

func (*VPCReconciler) Start

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

Start setup manager and launch GC

Jump to

Keyboard shortcuts

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