Documentation ¶
Index ¶
- func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)
- func GetInstanceTypeSpecFromAdmissionRequest(request *admissionv1.AdmissionRequest) (new *instancetypev1beta1.VirtualMachineInstancetypeSpec, ...)
- func GetPreferenceSpecFromAdmissionRequest(request *admissionv1.AdmissionRequest) (new *instancetypev1beta1.VirtualMachinePreferenceSpec, ...)
- func GetVMFromAdmissionReview(ar *admissionv1.AdmissionReview) (new *v12.VirtualMachine, old *v12.VirtualMachine, err error)
- func GetVMIFromAdmissionReview(ar *admissionv1.AdmissionReview) (new *v12.VirtualMachineInstance, old *v12.VirtualMachineInstance, err error)
- func ToAdmissionResponse(causes []v1.StatusCause) *admissionv1.AdmissionResponse
- func ToAdmissionResponseError(err error) *admissionv1.AdmissionResponse
- func ValidateRequestResource(request v1.GroupVersionResource, group string, resource string) bool
- func ValidateSchema(gvk schema.GroupVersionKind, data []byte) *admissionv1.AdmissionResponse
- func ValidateStatus(data []byte) *admissionv1.AdmissionResponse
- func ValidationErrorsToAdmissionResponse(errs []error) *admissionv1.AdmissionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAdmissionReview ¶
func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)
GetAdmissionReview
func GetInstanceTypeSpecFromAdmissionRequest ¶ added in v1.0.0
func GetInstanceTypeSpecFromAdmissionRequest(request *admissionv1.AdmissionRequest) (new *instancetypev1beta1.VirtualMachineInstancetypeSpec, old *instancetypev1beta1.VirtualMachineInstancetypeSpec, err error)
func GetPreferenceSpecFromAdmissionRequest ¶ added in v1.3.0
func GetPreferenceSpecFromAdmissionRequest(request *admissionv1.AdmissionRequest) (new *instancetypev1beta1.VirtualMachinePreferenceSpec, old *instancetypev1beta1.VirtualMachinePreferenceSpec, err error)
func GetVMFromAdmissionReview ¶ added in v0.33.0
func GetVMFromAdmissionReview(ar *admissionv1.AdmissionReview) (new *v12.VirtualMachine, old *v12.VirtualMachine, err error)
func GetVMIFromAdmissionReview ¶ added in v0.33.0
func GetVMIFromAdmissionReview(ar *admissionv1.AdmissionReview) (new *v12.VirtualMachineInstance, old *v12.VirtualMachineInstance, err error)
func ToAdmissionResponse ¶
func ToAdmissionResponse(causes []v1.StatusCause) *admissionv1.AdmissionResponse
func ToAdmissionResponseError ¶
func ToAdmissionResponseError(err error) *admissionv1.AdmissionResponse
ToAdmissionResponseError
func ValidateRequestResource ¶
func ValidateRequestResource(request v1.GroupVersionResource, group string, resource string) bool
func ValidateSchema ¶
func ValidateSchema(gvk schema.GroupVersionKind, data []byte) *admissionv1.AdmissionResponse
func ValidateStatus ¶ added in v0.33.0
func ValidateStatus(data []byte) *admissionv1.AdmissionResponse
func ValidationErrorsToAdmissionResponse ¶
func ValidationErrorsToAdmissionResponse(errs []error) *admissionv1.AdmissionResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.