Documentation ¶
Index ¶
- Constants
- func NoDownscale(ctx context.Context, l log.Logger, ar v1.AdmissionReview, ...) *v1.AdmissionResponse
- func PrepareDownscale(ctx context.Context, logger log.Logger, ar v1.AdmissionReview, ...) *v1.AdmissionResponse
- func Serve(admit AdmitV1Func, logger log.Logger, api *kubernetes.Clientset) http.HandlerFunc
- type AdmitV1Func
Constants ¶
View Source
const (
NoDownscaleWebhookPath = "/admission/no-downscale"
)
View Source
const (
PrepareDownscaleWebhookPath = "/admission/prepare-downscale"
)
Variables ¶
This section is empty.
Functions ¶
func NoDownscale ¶
func NoDownscale(ctx context.Context, l log.Logger, ar v1.AdmissionReview, api *kubernetes.Clientset) *v1.AdmissionResponse
func PrepareDownscale ¶ added in v0.5.0
func PrepareDownscale(ctx context.Context, logger log.Logger, ar v1.AdmissionReview, api *kubernetes.Clientset, useZoneTracker bool, zoneTrackerConfigMapName string) *v1.AdmissionResponse
func Serve ¶
func Serve(admit AdmitV1Func, logger log.Logger, api *kubernetes.Clientset) http.HandlerFunc
Serve handles the http portion of a request prior to handing to a V1Handler.
Types ¶
type AdmitV1Func ¶
type AdmitV1Func func(context.Context, log.Logger, v1.AdmissionReview, *kubernetes.Clientset) *v1.AdmissionResponse
AdmitV1Func handles a v1 admission
Click to show internal directories.
Click to hide internal directories.