Documentation ¶
Index ¶
- Constants
- func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)
- func GetAdmissionReviewVM(ar *admissionv1.AdmissionReview) (*kubevirt.VirtualMachine, *kubevirt.VirtualMachine, error)
- func ServeVMTemplateValidate(resp http.ResponseWriter, req *http.Request)
- func ToAdmissionResponse(causes []metav1.StatusCause) *admissionv1.AdmissionResponse
- func ToAdmissionResponseError(err error) *admissionv1.AdmissionResponse
- func ToAdmissionResponseOK() *admissionv1.AdmissionResponse
- func ValidateVMTemplate(rules []validation.Rule, newVM, oldVM *kubevirtv1.VirtualMachine) []metav1.StatusCause
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 GetAdmissionReviewVM ¶
func GetAdmissionReviewVM(ar *admissionv1.AdmissionReview) (*kubevirt.VirtualMachine, *kubevirt.VirtualMachine, error)
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.
Click to show internal directories.
Click to hide internal directories.