validating

package
v0.18.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VmValidatePath       string = "/virtualmachine-validate"
	TemplateValidatePath string = "/template-validate"
)

Variables

This section is empty.

Functions

func GetAdmissionReview

func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)

GetAdmissionReview

func GetAdmissionReviewTemplate added in v0.12.0

func GetAdmissionReviewTemplate(ar *admissionv1.AdmissionReview) (*templatev1.Template, error)

func ToAdmissionResponse

func ToAdmissionResponse(causes []metav1.StatusCause) *admissionv1.AdmissionResponse

func ToAdmissionResponseError

func ToAdmissionResponseError(err error) *admissionv1.AdmissionResponse

ToAdmissionResponseError

func ToAdmissionResponseOK

func ToAdmissionResponseOK() *admissionv1.AdmissionResponse

func ValidateVm added in v0.12.0

func ValidateVm(rules []validation.Rule, vm *kubevirtv1.VirtualMachine) []metav1.StatusCause

Types

type Webhooks added in v0.12.0

type Webhooks interface {
	Register()
}

func NewWebhooks added in v0.12.0

func NewWebhooks(informers *virtinformers.Informers) Webhooks

Jump to

Keyboard shortcuts

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