endpoint

package
v1.33.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 31 Imported by: 163

Documentation

Overview

Package endpoint provides EndpointController implementation to manage and sync service endpoints.

Index

Constants

View Source
const (

	// LabelManagedBy is a label for recognizing Endpoints managed by this controller.
	LabelManagedBy = "endpoints.kubernetes.io/managed-by"

	// ControllerName is the name of this controller
	ControllerName = "endpoint-controller"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller added in v1.20.0

type Controller struct {
	// contains filtered or unexported fields
}

Controller manages selector-based service endpoints.

func NewEndpointController

func NewEndpointController(ctx context.Context, podInformer coreinformers.PodInformer, serviceInformer coreinformers.ServiceInformer,
	endpointsInformer coreinformers.EndpointsInformer, client clientset.Interface, endpointUpdatesBatchPeriod time.Duration) *Controller

NewEndpointController returns a new *Controller.

func (*Controller) Run added in v1.20.0

func (e *Controller) Run(ctx context.Context, workers int)

Run will not return until stopCh is closed. workers determines how many endpoints will be handled in parallel.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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