MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / NewResourcesValidator

Function NewResourcesValidator

webhook/workspace/validate.go:36–38  ·  view source on GitHub ↗
(controllerUID, controllerSAName string, mgr manager.Manager)

Source from the content-addressed store, hash-verified

34}
35
36func 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
40func (v *ResourcesValidator) Handle(ctx context.Context, req admission.Request) admission.Response {
41 if req.Kind == handler.V1PodExecOptionKind && req.Operation == admissionv1.Connect {

Callers 1

ConfigureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected