validating

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func GetAdmissionReview

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

GetAdmissionReview

func ServeVMTemplateValidate

func ServeVMTemplateValidate(resp http.ResponseWriter, req *http.Request)

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 ValidateVMTemplate

func ValidateVMTemplate(rules []validation.Rule, newVM, oldVM *kubevirtv1.VirtualMachine) []metav1.StatusCause

Types

This section is empty.

Jump to

Keyboard shortcuts

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