Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for GetSubresource (0.2 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    			Namespace:   attr.GetNamespace(),
    			Verb:        attr.GetVerb(),
    			Group:       attr.GetAPIGroup(),
    			Version:     attr.GetAPIVersion(),
    			Resource:    attr.GetResource(),
    			Subresource: attr.GetSubresource(),
    			Name:        attr.GetName(),
    		}
    	} else {
    		r.Spec.NonResourceAttributes = &authorizationv1.NonResourceAttributes{
    			Path: attr.GetPath(),
    			Verb: attr.GetVerb(),
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server.go

    			msg := fmt.Sprintf("Authorization error (user=%s, verb=%s, resource=%s, subresource=%s)", attrs.GetUser().GetName(), attrs.GetVerb(), attrs.GetResource(), attrs.GetSubresource())
    			resp.WriteErrorString(http.StatusInternalServerError, msg)
    			return
    		}
    		if decision != authorizer.DecisionAllow {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  3. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    	admission.Attributes // nil panic if any other methods called
    }
    
    func (t *testAttributes) GetResource() schema.GroupVersionResource {
    	return t.resource.WithVersion("ignored")
    }
    
    func (t *testAttributes) GetSubresource() string {
    	return t.subresource
    }
    
    func (t *testAttributes) GetObject() runtime.Object {
    	return t.obj
    }
    
    func (t *testAttributes) GetOldObject() runtime.Object {
    	return t.oldObj
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. plugin/pkg/admission/imagepolicy/admission.go

    	// Ignore all calls to subresources other than ephemeralcontainers or calls to resources other than pods.
    	subresource := attributes.GetSubresource()
    	if (subresource != "" && subresource != ephemeralcontainers) || attributes.GetResource().GroupResource() != api.Resource("pods") {
    		return nil
    	}
    
    	pod, ok := attributes.GetObject().(*api.Pod)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. pkg/volume/util/operationexecutor/operation_generator_test.go

    		return true, pv, nil
    	})
    	fakeKubeClient.AddReactor("patch", "persistentvolumeclaims", func(action core.Action) (bool, runtime.Object, error) {
    		if action.GetSubresource() == "status" {
    			return true, pvc, nil
    		}
    		return true, nil, fmt.Errorf("no reaction implemented for %s", action)
    	})
    
    	fakeRecorder := &record.FakeRecorder{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/rest/update.go

    			obj,
    			old,
    			staticAttributes.GetKind(),
    			staticAttributes.GetNamespace(),
    			staticAttributes.GetName(),
    			staticAttributes.GetResource(),
    			staticAttributes.GetSubresource(),
    			staticAttributes.GetOperation(),
    			staticAttributes.GetOperationOptions(),
    			staticAttributes.IsDryRun(),
    			staticAttributes.GetUserInfo(),
    		)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    		attribute.String("configuration", invocation.Webhook.GetConfigurationName()),
    		attribute.String("webhook", h.Name),
    		attribute.Stringer("resource", attr.GetResource()),
    		attribute.String("subresource", attr.GetSubresource()),
    		attribute.String("operation", string(attr.GetOperation())),
    		attribute.String("UID", string(uid)))
    	defer span.End(500 * time.Millisecond)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission_test.go

    	if err == nil {
    		actions := ""
    		for _, action := range mockClient.Actions() {
    			actions = actions + action.GetVerb() + ":" + action.GetResource().Resource + ":" + action.GetSubresource() + ", "
    		}
    		t.Errorf("expected error returned from admission handler: %v", actions)
    	}
    
    	// verify create operations in the namespace cause an error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. pkg/controller/deployment/deployment_controller_test.go

    			break
    		}
    
    		expectedAction := f.actions[i]
    		if !(expectedAction.Matches(action.GetVerb(), action.GetResource().Resource) && action.GetSubresource() == expectedAction.GetSubresource()) {
    			f.t.Errorf("Expected\n\t%#v\ngot\n\t%#v", expectedAction, action)
    			continue
    		}
    	}
    
    	if len(f.actions) > len(actions) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    func (d *defaultAttributes) GetNamespace() string    { return d.namespace }
    func (d *defaultAttributes) GetResource() string     { return d.resource }
    func (d *defaultAttributes) GetSubresource() string  { return d.subresource }
    func (d *defaultAttributes) GetName() string         { return "" }
    func (d *defaultAttributes) GetAPIGroup() string     { return d.apiGroup }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 21.1K bytes
    - Viewed (0)
Back to top