Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for GetSubresource (0.21 sec)

  1. plugin/pkg/admission/antiaffinity/admission.go

    func (p *Plugin) Validate(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	// Ignore all calls to subresources or resources other than pods.
    	if len(attributes.GetSubresource()) != 0 || 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: Tue Aug 20 15:11:00 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  2. 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)
  3. plugin/pkg/admission/certificates/approval/admission.go

    	// Ignore all calls to anything other than 'certificatesigningrequests/approval'.
    	// Ignore all operations other than UPDATE.
    	if a.GetSubresource() != "approval" ||
    		a.GetResource().GroupResource() != csrGroupResource {
    		return nil
    	}
    
    	// We check permissions against the *old* version of the resource, in case
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. plugin/pkg/admission/network/denyserviceexternalips/admission.go

    	if attr.GetResource().GroupResource() != core.Resource("services") {
    		return nil
    	}
    
    	if len(attr.GetSubresource()) != 0 {
    		return nil
    	}
    
    	// if we can't convert then we don't handle this object so just return
    	newSvc, ok := attr.GetObject().(*core.Service)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 29 18:00:11 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  6. plugin/pkg/admission/nodetaint/admission.go

    func (p *Plugin) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error {
    	// Our job is just to taint nodes.
    	if a.GetResource().GroupResource() != nodeResource || a.GetSubresource() != "" {
    		return nil
    	}
    
    	node, ok := a.GetObject().(*api.Node)
    	if !ok {
    		return admission.NewForbidden(a, fmt.Errorf("unexpected type %T", a.GetObject()))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 2.5K bytes
    - Viewed (0)
  7. 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)
  8. plugin/pkg/admission/extendedresourcetoleration/admission.go

    func (p *plugin) Admit(ctx context.Context, attributes admission.Attributes, o admission.ObjectInterfaces) error {
    	// Ignore all calls to subresources or resources other than pods.
    	if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != core.Resource("pods") {
    		return nil
    	}
    
    	pod, ok := attributes.GetObject().(*core.Pod)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  9. plugin/pkg/admission/defaulttolerationseconds/admission.go

    	if attributes.GetResource().GroupResource() != api.Resource("pods") {
    		return nil
    	}
    
    	if len(attributes.GetSubresource()) > 0 {
    		// only run the checks below on pods proper and not subresources
    		return nil
    	}
    
    	pod, ok := attributes.GetObject().(*api.Pod)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 06 04:56:21 UTC 2019
    - 4K bytes
    - Viewed (0)
  10. 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)
Back to top