webhook

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidateHandle

type ValidateHandle interface {
	Validate(ar *admv1.AdmissionReview) *admv1.AdmissionResponse
}

ValidateHandle defines capability about process AdmissionReview.

type ValidateWebhook

type ValidateWebhook struct {
	Scheme *runtime.Scheme
}

ValidateWebhook register webhook for validate everoute objects.

func (*ValidateWebhook) Handler

func (v *ValidateWebhook) Handler(handle ValidateHandle) http.HandlerFunc

Handler handle validate admission http request.

func (*ValidateWebhook) SetupWithManager

func (v *ValidateWebhook) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager create and add a ValidateWebhook to the manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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