admission

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoDownscaleWebhookPath = "/admission/no-downscale"
)
View Source
const (
	PrepareDownscaleWebhookPath = "/admission/prepare-downscale"
)
View Source
const (
	ZpdbValidatorWebhookPath = "/admission/zpdb-validation"
)

Variables

This section is empty.

Functions

func PrepareDownscale added in v0.5.0

func PrepareDownscale(ctx context.Context, client *instrumentation.PodHTTPClient, logger log.Logger, ar admissionv1.AdmissionReview, api *kubernetes.Clientset, useZoneTracker bool, zoneTrackerConfigMapName string, clusterDomain string) *admissionv1.AdmissionResponse

func Serve

func Serve(admit AdmitV1Func, logger log.Logger, api *kubernetes.Clientset, handlerTimeout time.Duration) http.HandlerFunc

Serve handles the http portion of a request prior to handing to a V1Handler. handlerTimeout, when positive, bounds how long the admit function may run by imposing a deadline on its context.

func ZoneAwarePdbValidatingWebhookHandler added in v0.29.0

func ZoneAwarePdbValidatingWebhookHandler(ctx context.Context, l log.Logger, ar v1.AdmissionReview) *v1.AdmissionResponse

ZoneAwarePdbValidatingWebhookHandler is a handler for a validating webhook configuration. If attempts to parse and validate the given object as a ZoneAwarePodDisruptionBudget configuration.

Types

type AdmitV1Func

AdmitV1Func handles a v1 admission

Jump to

Keyboard shortcuts

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