pod

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: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricResTypePod = common.MetricResTypePod
)

Functions

func StartPodController

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

Types

type PodReconciler

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

PodReconciler reconciles a Pod object

func (*PodReconciler) GarbageCollector

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

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

func (*PodReconciler) GetSubnetPathForPod

func (r *PodReconciler) GetSubnetPathForPod(ctx context.Context, pod *v1.Pod) (string, error)

func (*PodReconciler) Reconcile

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

func (*PodReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*PodReconciler) Start

func (r *PodReconciler) 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