Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HandlerGetterMap contains admission webhook handlers HandlerGetterMap = map[string]types.HandlerGetter{ "validate-apps-deployment": func(mgr manager.Manager) admission.Handler { return &WorkloadHandler{Decoder: admission.NewDecoder(mgr.GetScheme())} }, "validate-apps-replicaset": func(mgr manager.Manager) admission.Handler { return &WorkloadHandler{Decoder: admission.NewDecoder(mgr.GetScheme())} }, "validate-apps-statefulset": func(mgr manager.Manager) admission.Handler { return &WorkloadHandler{Decoder: admission.NewDecoder(mgr.GetScheme())} }, } )
Functions ¶
This section is empty.
Types ¶
type WorkloadHandler ¶
WorkloadHandler handles built-in workloads, e.g. Deployment, ReplicaSet, StatefulSet
func (*WorkloadHandler) InjectDecoder ¶
func (h *WorkloadHandler) InjectDecoder(d *admission.Decoder) error
Click to show internal directories.
Click to hide internal directories.