Documentation ¶
Overview ¶
Package webhook contains all tools to wrap type and function for custom admin webhook from k8s api
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Codecs = serializer.NewCodecFactory(scheme)
Functions ¶
This section is empty.
Types ¶
type AdmitHandler ¶
type AdmitHandler struct { V1beta1 AdmitV1Beta1Func V1 AdmitV1Func }
AdmitHandler wrap different type version of AdmissionReview object
func WrapToAdminV1 ¶
func WrapToAdminV1(f AdmitV1Func) AdmitHandler
type AdmitV1Beta1Func ¶ added in v0.0.3
type AdmitV1Beta1Func func(review v1beta1.AdmissionReview) *v1beta1.AdmissionResponse
AdmitV1Beta1Func hadnler for v1beta1 Admission version
type AdmitV1Func ¶ added in v0.0.3
type AdmitV1Func func(review v1.AdmissionReview) *v1.AdmissionResponse
AdmitV1Func handler for v1 Admission version
Click to show internal directories.
Click to hide internal directories.