Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetSubresource (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. pkg/controller/volume/expand/expand_controller_test.go

    				return true, test.pv, nil
    			})
    		}
    		fakeKubeClient.AddReactor("patch", "persistentvolumeclaims", func(action coretesting.Action) (bool, runtime.Object, error) {
    			if action.GetSubresource() == "status" {
    				patchActionaction, _ := action.(coretesting.PatchAction)
    				pvc, err = applyPVCPatch(pvc, patchActionaction.GetPatch())
    				if err != nil {
    					return false, nil, err
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. plugin/pkg/admission/runtimeclass/admission.go

    		}
    	}
    
    	return nil
    }
    
    func shouldIgnore(attributes admission.Attributes) bool {
    	// Ignore all calls to subresources or resources other than pods.
    	if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != api.Resource("pods") {
    		return true
    	}
    
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 05 05:53:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top