- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for GetAPIGroup (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
if !hasString(r.Namespaces, attrs.GetNamespace()) { // Non-namespaced resources use the empty string. return false } } if len(r.Resources) == 0 { return true } apiGroup := attrs.GetAPIGroup() resource := attrs.GetResource() subresource := attrs.GetSubresource() combinedResource := resource // If subresource, the resource in the policy must match "(resource)/(subresource)" if subresource != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 02 22:24:14 UTC 2022 - 6.1K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/audit/request.go
Namespace: attribs.GetNamespace(), Name: attribs.GetName(), Resource: attribs.GetResource(), Subresource: attribs.GetSubresource(), APIGroup: attribs.GetAPIGroup(), APIVersion: attribs.GetAPIVersion(), } } } // LogImpersonatedUser fills in the impersonated user attributes into an audit event. func LogImpersonatedUser(ae *auditinternal.Event, user user.Info) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 9K bytes - Viewed (0) -
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) -
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)