kubernetesservicehost

package
v1.81.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HandlerName is the name of the webhook handler.
	HandlerName = "kubernetes-service-host"
	// WebhookPath is the path at which the handler should be registered.
	WebhookPath = "/webhooks/kubernetes-service-host"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger logr.Logger
	Host   string
}

Handler handles admission requests and injects the KUBERNETES_SERVICE_HOST environment variable into all containers in pods.

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 injects the KUBERNETES_SERVICE_HOST environment variable into all containers in the pod.

Jump to

Keyboard shortcuts

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