Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for GetSubresource (0.32 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go

    	gvk := invocation.Kind
    	gvr := invocation.Resource
    	subresource := invocation.Subresource
    	requestGVK := attr.GetKind()
    	requestGVR := attr.GetResource()
    	requestSubResource := attr.GetSubresource()
    	aUserInfo := attr.GetUserInfo()
    	userInfo := authenticationv1.UserInfo{
    		Extra:    make(map[string]authenticationv1.ExtraValue),
    		Groups:   aUserInfo.GetGroups(),
    		UID:      aUserInfo.GetUID(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 16:56:12 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/interfaces.go

    	GetNamespace() string
    	// GetResource is the name of the resource being requested.  This is not the kind.  For example: pods
    	GetResource() schema.GroupVersionResource
    	// GetSubresource is the name of the subresource being requested.  This is a different resource, scoped to the parent resource, but it may have a different kind.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 28 14:03:18 UTC 2021
    - 8K bytes
    - Viewed (0)
  3. plugin/pkg/admission/storage/storageclass/setdefault/admission.go

    	if attr.GetResource().GroupResource() != api.Resource("persistentvolumeclaims") {
    		return nil
    	}
    
    	if len(attr.GetSubresource()) != 0 {
    		return nil
    	}
    
    	pvc, ok := attr.GetObject().(*api.PersistentVolumeClaim)
    	// if we can't convert then we don't handle this object so just return
    	if !ok {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 02 18:52:04 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  4. plugin/pkg/admission/gc/gc_admission.go

    	// // if the request is in the whitelist, we skip mutation checks for this resource.
    	if a.isWhiteListed(attributes.GetResource().GroupResource(), attributes.GetSubresource()) {
    		return nil
    	}
    
    	// if we aren't changing owner references, then the edit is always allowed
    	if !isChangingOwnerReference(attributes.GetObject(), attributes.GetOldObject()) {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. plugin/pkg/admission/gc/gc_admission_test.go

    	username := a.GetUser().GetName()
    
    	if username == "non-deleter" {
    		if a.GetVerb() == "delete" {
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    		if a.GetVerb() == "update" && a.GetSubresource() == "finalizers" {
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    		if a.GetAPIGroup() == "*" && a.GetResource() == "*" { // this user does not have full rights
    			return authorizer.DecisionNoOpinion, "", nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. plugin/pkg/admission/priority/admission.go

    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	operation := a.GetOperation()
    	// Ignore all calls to subresources
    	if len(a.GetSubresource()) != 0 {
    		return nil
    	}
    	switch a.GetResource().GroupResource() {
    	case podResource:
    		if operation == admission.Create || operation == admission.Update {
    			return p.admitPod(a)
    		}
    		return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 08 10:11:23 UTC 2022
    - 9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go

    	if len(parts) == 2 {
    		return parts[0], parts[1]
    	}
    	return parts[0], ""
    }
    
    func (r *Matcher) resource() bool {
    	opRes, opSub := r.Attr.GetResource().Resource, r.Attr.GetSubresource()
    	for _, res := range r.Rule.Resources {
    		res, sub := splitResource(res)
    		resMatch := res == "*" || res == opRes
    		subMatch := sub == "*" || sub == opSub
    		if resMatch && subMatch {
    			return true
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:38:55 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  8. plugin/pkg/admission/namespace/exists/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)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. pkg/kubelet/server/auth.go

    		attrs.Subresource = "checkpoint"
    	}
    
    	klog.V(5).InfoS("Node request attributes", "user", attrs.GetUser().GetName(), "verb", attrs.GetVerb(), "resource", attrs.GetResource(), "subresource", attrs.GetSubresource())
    
    	return attrs
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 18:09:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    	// going to change the object, and attr.Object will be a DeleteOptions
    	// rather than a namespace object.
    	if attr.GetResource().Resource == "namespaces" &&
    		len(attr.GetSubresource()) == 0 &&
    		(attr.GetOperation() == admission.Create || attr.GetOperation() == admission.Update) {
    		accessor, err := meta.Accessor(attr.GetObject())
    		if err != nil {
    			return nil, err
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top