package endpointslice
import "k8s.io/kubernetes/pkg/controller/endpointslice"
Index ¶
- Constants
- type Controller
- func NewController(ctx context.Context, podInformer coreinformers.PodInformer, serviceInformer coreinformers.ServiceInformer, nodeInformer coreinformers.NodeInformer, endpointSliceInformer discoveryinformers.EndpointSliceInformer, maxEndpointsPerSlice int32, client clientset.Interface, endpointUpdatesBatchPeriod time.Duration, ) *Controller
- func (c *Controller) Run(ctx context.Context, workers int)
Constants ¶
const ( // ControllerName is a unique value used with LabelManagedBy to indicated // the component managing an EndpointSlice. ControllerName = "endpointslice-controller.k8s.io" )
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages selector-based service endpoint slices
func NewController ¶
func NewController(ctx context.Context, 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(ctx context.Context, workers int)
Run will not return until stopCh is closed.
Source Files ¶
endpointslice_controller.go
Directories ¶
Path | Synopsis |
---|---|
pkg/controller/endpointslice/config | |
pkg/controller/endpointslice/config/v1alpha1 |
- Version
- v1.33.1 (latest)
- Published
- May 15, 2025
- Platform
- linux/amd64
- Imports
- 29 packages
- Last checked
- 13 hours ago –
Tools for package owners.