Documentation ¶
Index ¶
- Constants
- func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)
- func GetAdmissionReviewTemplate(ar *admissionv1.AdmissionReview) (*templatev1.Template, error)
- func GetAdmissionReviewVM(ar *admissionv1.AdmissionReview) (*kubevirt.VirtualMachine, error)
- func ToAdmissionResponse(causes []metav1.StatusCause) *admissionv1.AdmissionResponse
- func ToAdmissionResponseError(err error) *admissionv1.AdmissionResponse
- func ToAdmissionResponseOK() *admissionv1.AdmissionResponse
- func ValidateVm(rules []validation.Rule, vm *kubevirtv1.VirtualMachine) []metav1.StatusCause
- type Webhooks
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 GetAdmissionReviewVM ¶
func GetAdmissionReviewVM(ar *admissionv1.AdmissionReview) (*kubevirt.VirtualMachine, 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
Click to show internal directories.
Click to hide internal directories.