Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for GetAPIGroup (0.12 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation_test.go

    		return authorizer.DecisionAllow, "", nil
    	}
    
    	if len(user.GetGroups()) > 1 && user.GetGroups()[1] == "extra-setter-project" && a.GetVerb() == "impersonate" && a.GetResource() == "userextras" && a.GetSubresource() == "project" && a.GetAPIGroup() == "authentication.k8s.io" {
    		return authorizer.DecisionAllow, "", nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 06 17:13:16 UTC 2021
    - 17.2K bytes
    - Viewed (0)
  2. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    	}
    	if a.GetVerb() != f.verb {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised verb '%s'", a.GetVerb()), nil
    	}
    	if a.GetAPIGroup() != "certificates.k8s.io" {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised groupName '%s'", a.GetAPIGroup()), nil
    	}
    	if a.GetAPIVersion() != "*" {
    		return authorizer.DecisionDeny, fmt.Sprintf("unrecognised apiVersion '%s'", a.GetAPIVersion()), nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. plugin/pkg/admission/gc/gc_admission_test.go

    		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
    		}
    		return authorizer.DecisionAllow, "", nil
    	}
    
    	if username == "non-pod-deleter" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    		}
    	}
    
    	if attr.IsResourceRequest() {
    		r.Spec.ResourceAttributes = &authorizationv1.ResourceAttributes{
    			Namespace:   attr.GetNamespace(),
    			Verb:        attr.GetVerb(),
    			Group:       attr.GetAPIGroup(),
    			Version:     attr.GetAPIVersion(),
    			Resource:    attr.GetResource(),
    			Subresource: attr.GetSubresource(),
    			Name:        attr.GetName(),
    		}
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go

    			return errors.NewInternalError(authorizerErr)
    		}
    
    		// The user is not authorized to perform this action, so we need to build the error response
    		gr := schema.GroupResource{
    			Group:    attributes.GetAPIGroup(),
    			Resource: attributes.GetResource(),
    		}
    		name := attributes.GetName()
    		err := fmt.Errorf("%v", authorizerReason)
    		return errors.NewForbidden(gr, name, err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:19:46 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. plugin/pkg/auth/authorizer/node/node_authorizer.go

    	}
    
    	// subdivide access to specific resources
    	if attrs.IsResourceRequest() {
    		requestResource := schema.GroupResource{Group: attrs.GetAPIGroup(), Resource: attrs.GetResource()}
    		switch requestResource {
    		case secretResource:
    			return r.authorizeReadNamespacedObject(nodeName, secretVertexType, attrs)
    		case configMapResource:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/rbac/rbac_test.go

    func (d *defaultAttributes) GetSubresource() string  { return d.subresource }
    func (d *defaultAttributes) GetName() string         { return "" }
    func (d *defaultAttributes) GetAPIGroup() string     { return d.apiGroup }
    func (d *defaultAttributes) GetAPIVersion() string   { return "" }
    func (d *defaultAttributes) IsResourceRequest() bool { return true }
    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