Function
NewResourcesValidator
(controllerUID, controllerSAName string, mgr manager.Manager)
Source from the content-addressed store, hash-verified
| 34 | } |
| 35 | |
| 36 | func NewResourcesValidator(controllerUID, controllerSAName string, mgr manager.Manager) *ResourcesValidator { |
| 37 | return &ResourcesValidator{&handler.WebhookHandler{ControllerUID: controllerUID, ControllerSAName: controllerSAName, Decoder: admission.NewDecoder(mgr.GetScheme()), Client: mgr.GetClient()}} |
| 38 | } |
| 39 | |
| 40 | func (v *ResourcesValidator) Handle(ctx context.Context, req admission.Request) admission.Response { |
| 41 | if req.Kind == handler.V1PodExecOptionKind && req.Operation == admissionv1.Connect { |
Tested by
no test coverage detected