Documentation ¶
Index ¶
- func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)
- 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 SetupPromTLS(certManager certificate.Manager) *tls.Config
- func SetupTLSForVirtHandlerClients(caManager ClientCAManager, certManager certificate.Manager, ...) *tls.Config
- func SetupTLSForVirtHandlerServer(caManager ClientCAManager, certManager certificate.Manager, ...) *tls.Config
- func SetupTLSWithCertManager(caManager ClientCAManager, certManager certificate.Manager, ...) *tls.Config
- 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
- type ClientCAManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAdmissionReview ¶
func GetAdmissionReview(r *http.Request) (*admissionv1.AdmissionReview, error)
GetAdmissionReview
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 SetupPromTLS ¶ added in v0.29.0
func SetupPromTLS(certManager certificate.Manager) *tls.Config
func SetupTLSForVirtHandlerClients ¶ added in v0.29.0
func SetupTLSForVirtHandlerClients(caManager ClientCAManager, certManager certificate.Manager, externallyManaged bool) *tls.Config
func SetupTLSForVirtHandlerServer ¶ added in v0.29.0
func SetupTLSForVirtHandlerServer(caManager ClientCAManager, certManager certificate.Manager, externallyManaged bool) *tls.Config
func SetupTLSWithCertManager ¶ added in v0.29.0
func SetupTLSWithCertManager(caManager ClientCAManager, certManager certificate.Manager, clientAuth tls.ClientAuthType) *tls.Config
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 ¶
type ClientCAManager ¶
func NewCAManager ¶ added in v0.29.0
func NewCAManager(configMapCache cache.Store, namespace string, configMapName string) ClientCAManager
func NewKubernetesClientCAManager ¶ added in v0.29.0
func NewKubernetesClientCAManager(configMapCache cache.Store) ClientCAManager
Click to show internal directories.
Click to hide internal directories.