Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusBadRequest ¶
func StatusBadRequest(err error) *v1beta1.AdmissionResponse
func StatusForbidden ¶
func StatusForbidden(err error) *v1beta1.AdmissionResponse
func StatusInternalServerError ¶
func StatusInternalServerError(err error) *v1beta1.AdmissionResponse
func StatusUninitialized ¶
func StatusUninitialized() *v1beta1.AdmissionResponse
Types ¶
type AdmissionHook ¶
type AdmissionHook interface { // Initialize is called as a post-start hook Initialize(config *rest.Config, stopCh <-chan struct{}) error // Resource is the resource to use for hosting your admission webhook. If the hook implements // MutatingAdmissionHook as well, the two resources for validating and mutating admission must be different. // Note: this is (usually) not the same as the payload resource! Resource() (plural schema.GroupVersionResource, singular string) // Validate is called to decide whether to accept the admission request. The returned AdmissionResponse may // use the Patch field to mutate the object from the passed AdmissionRequest. Admit(admissionSpec *admission.AdmissionRequest) *admission.AdmissionResponse }
Click to show internal directories.
Click to hide internal directories.