kubelet

package
v0.0.0-...-70feec6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func New

func New(
	logger *slog.Logger,
	kclient kubernetes.Interface,
	r prometheus.Registerer,
	kubeletServiceName string,
	kubeletServiceNamespace string,
	kubeletSelector operator.LabelSelector,
	commonAnnotations operator.Map,
	commonLabels operator.Map,
	opts ...ControllerOption,
) (*Controller, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

type ControllerOption

type ControllerOption func(*Controller)

func WithEndpointSlice

func WithEndpointSlice() ControllerOption

func WithEndpoints

func WithEndpoints() ControllerOption

func WithMaxEndpointsPerSlice

func WithMaxEndpointsPerSlice(v int) ControllerOption

func WithNodeAddressPriority

func WithNodeAddressPriority(s string) ControllerOption

Jump to

Keyboard shortcuts

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