endpointslice

package
v0.0.0-...-b66e341 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Overview

Package endpointslice proides multus-service-controller functions for endpointslice.

Index

Constants

View Source
const (

	// LabelServiceProxyName is kube-proxy's well-known label which
	// avoid to inject iptable rules from kube-proxy
	LabelServiceProxyName = "service.kubernetes.io/service-proxy-name"
)

Variables

This section is empty.

Functions

func IsReservedLabelKey

func IsReservedLabelKey(label string) bool

IsReservedLabelKey return true if the label is one of the reserved label for slices

Types

type Controller

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

Controller manages selector-based service endpoint slices

func NewController

func NewController(podInformer coreinformers.PodInformer,
	serviceInformer coreinformers.ServiceInformer,
	nodeInformer coreinformers.NodeInformer,
	endpointSliceInformer discoveryinformers.EndpointSliceInformer,
	maxEndpointsPerSlice int32,
	client clientset.Interface,
	endpointUpdatesBatchPeriod time.Duration,
) *Controller

NewController creates and initializes a new Controller

func (*Controller) Run

func (c *Controller) Run(workers int, stopCh <-chan struct{})

Run will not return until stopCh is closed.

type StaleInformerCache

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

StaleInformerCache errors indicate that the informer cache includes out of date resources.

func (*StaleInformerCache) Error

func (e *StaleInformerCache) Error() string

Directories

Path Synopsis
Package metrics provides metrics for multus-service-controller.
Package metrics provides metrics for multus-service-controller.

Jump to

Keyboard shortcuts

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