Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for GetAPIGroup (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go

    	if len(reason) == 0 {
    		errMsg = fmt.Sprintf("%s", msg)
    	} else {
    		errMsg = fmt.Sprintf("%s: %s", msg, reason)
    	}
    	gv := schema.GroupVersion{Group: attributes.GetAPIGroup(), Version: attributes.GetAPIVersion()}
    	gr := schema.GroupResource{Group: attributes.GetAPIGroup(), Resource: attributes.GetResource()}
    	ErrorNegotiated(apierrors.NewForbidden(gr, attributes.GetName(), fmt.Errorf(errMsg)), s, gv, w, req)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 21 16:18:47 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer.go

    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)
    
    // The user info accessors known to cache key construction. If this fails to compile, the cache
    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. plugin/pkg/auth/authorizer/rbac/rbac.go

    			b.WriteString(`"`)
    			b.WriteString(requestAttributes.GetVerb())
    			b.WriteString(`" resource "`)
    			b.WriteString(requestAttributes.GetResource())
    			if len(requestAttributes.GetAPIGroup()) > 0 {
    				b.WriteString(`.`)
    				b.WriteString(requestAttributes.GetAPIGroup())
    			}
    			if len(requestAttributes.GetSubresource()) > 0 {
    				b.WriteString(`/`)
    				b.WriteString(requestAttributes.GetSubresource())
    			}
    			b.WriteString(`"`)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 24 10:13:50 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/group.go

    	ws := new(restful.WebService)
    	ws.Path(APIGroupPrefix + "/" + s.group.Name)
    	ws.Doc("get information of a group")
    	ws.Route(ws.GET("/").To(s.handle).
    		Doc("get information of a group").
    		Operation("getAPIGroup").
    		Produces(mediaTypes...).
    		Consumes(mediaTypes...).
    		Writes(metav1.APIGroup{}))
    	return ws
    }
    
    // handle returns a handler which will return the api.GroupAndVersion of the group.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 20:38:08 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go

    	// will be present for: get, update, delete
    	GetName() string
    
    	// The group of the resource, if a request is for a REST object.
    	GetAPIGroup() string
    
    	// GetAPIVersion returns the version of the group requested, if a request is for a REST object.
    	GetAPIVersion() string
    
    	// IsResourceRequest returns true for requests to API resources, like /api/v1/nodes,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 14:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. plugin/pkg/admission/certificates/approval/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: Thu Feb 27 15:50:14 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  8. plugin/pkg/admission/certificates/signing/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: Thu May 28 16:20:40 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top