endpointslicehints

package
v1.108.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of this webhook handler.
	HandlerName = "endpoint-slice-hints"
	// WebhookPath is the path at which the handler should be registered.
	WebhookPath = "/webhooks/endpoint-slice-hints"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger logr.Logger
}

Handler handles admission requests and sets hints in EndpointSlice resouces.

func (*Handler) AddToManager

func (h *Handler) AddToManager(mgr manager.Manager) error

AddToManager adds Handler to the given manager.

func (*Handler) Default

func (h *Handler) Default(ctx context.Context, obj runtime.Object) error

Default defaults the hints of the endpoints in the provided EndpointSlice.

Jump to

Keyboard shortcuts

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