Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for GetSubresource (0.22 sec)

  1. plugin/pkg/auth/authorizer/node/node_authorizer.go

    			return r.authorizeReadNamespacedObject(nodeName, secretVertexType, attrs)
    		case configMapResource:
    			return r.authorizeReadNamespacedObject(nodeName, configMapVertexType, attrs)
    		case pvcResource:
    			if attrs.GetSubresource() == "status" {
    				return r.authorizeStatusUpdate(nodeName, pvcVertexType, attrs)
    			}
    			return r.authorizeGet(nodeName, pvcVertexType, attrs)
    		case pvResource:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    				Subresource: attr.GetSubresource(),
    				Kind:        attr.GetKind(),
    			}
    			break
    		}
    	}
    	if invocation == nil && h.GetMatchPolicy() != nil && *h.GetMatchPolicy() == v1.Equivalent {
    		attrWithOverride := &attrWithResourceOverride{Attributes: attr}
    		equivalents := o.GetEquivalentResourceMapper().EquivalentResourcesFor(attr.GetResource(), attr.GetSubresource())
    		// honor earlier rules first
    	OuterLoop:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go

    // implementation may need to be updated.
    var _ authorizer.Attributes = (interface {
    	GetUser() user.Info
    	GetVerb() string
    	IsReadOnly() bool
    	GetNamespace() string
    	GetResource() string
    	GetSubresource() string
    	GetName() string
    	GetAPIGroup() string
    	GetAPIVersion() string
    	IsResourceRequest() bool
    	GetPath() string
    })(nil)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching.go

    	}
    
    	attrWithOverride := &attrWithResourceOverride{Attributes: attr}
    	equivalents := o.GetEquivalentResourceMapper().EquivalentResourcesFor(attr.GetResource(), attr.GetSubresource())
    	for _, namedRule := range namedRules {
    		for _, equivalent := range equivalents {
    			if equivalent == attr.GetResource() {
    				// we have already checked the original resource
    				continue
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. plugin/pkg/admission/serviceaccount/admission.go

    			return admission.NewForbidden(a, err)
    		}
    	}
    
    	return nil
    }
    
    func shouldIgnore(a admission.Attributes) bool {
    	if a.GetResource().GroupResource() != api.Resource("pods") || (a.GetSubresource() != "" && a.GetSubresource() != "ephemeralcontainers") {
    		return true
    	}
    	obj := a.GetObject()
    	if obj == nil {
    		return true
    	}
    	_, ok := obj.(*api.Pod)
    	if !ok {
    		return true
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top