- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for GetSubresource (0.16 sec)
-
plugin/pkg/auth/authorizer/rbac/rbac.go
if len(requestAttributes.GetSubresource()) > 0 { combinedResource = requestAttributes.GetResource() + "/" + requestAttributes.GetSubresource() } return rbacv1helpers.VerbMatches(rule, requestAttributes.GetVerb()) && rbacv1helpers.APIGroupMatches(rule, requestAttributes.GetAPIGroup()) && rbacv1helpers.ResourceMatches(rule, combinedResource, requestAttributes.GetSubresource()) &&
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 24 10:13:50 UTC 2022 - 7.8K bytes - Viewed (0) -
plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go
case pvResource: return c.admitPV(a) case pvcResource: return c.admitPVC(a) default: return nil } } func (c *storageProtectionPlugin) admitPV(a admission.Attributes) error { if len(a.GetSubresource()) != 0 { return nil } pv, ok := a.GetObject().(*api.PersistentVolume) // if we can't convert the obj to PV, just return if !ok { return nil } for _, f := range pv.Finalizers {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 02 21:13:50 UTC 2021 - 3.2K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/authorization/authorizer/interfaces.go
// The namespace of the object, if a request is for a REST object. GetNamespace() string // The kind of object, if a request is for a REST object. GetResource() string // GetSubresource returns the subresource being requested, if present GetSubresource() string // GetName returns the name of the object as parsed off the request. This will not be present for all request types, but // will be present for: get, update, delete
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 06 14:36:14 UTC 2023 - 4.8K bytes - Viewed (0) -
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) -
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) -
pkg/controller/certificates/certificate_controller_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 15 03:26:08 UTC 2023 - 2.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultbinder/default_binder_test.go
defer cancel() var gotBinding *v1.Binding client := fake.NewSimpleClientset(testPod) client.PrependReactor("create", "pods", func(action clienttesting.Action) (bool, runtime.Object, error) { if action.GetSubresource() != "binding" { return false, nil, nil } if tt.injectErr != nil { return true, nil, tt.injectErr } gotBinding = action.(clienttesting.CreateAction).GetObject().(*v1.Binding)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 23 02:17:34 UTC 2023 - 2.6K bytes - Viewed (0) -
plugin/pkg/admission/certificates/subjectrestriction/admission.go
// attribute is not set to `system:masters`. func (p *Plugin) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error { if a.GetResource().GroupResource() != csrGroupResource || a.GetSubresource() != "" { return nil } csr, ok := a.GetObject().(*certificatesapi.CertificateSigningRequest) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 05 22:45:34 UTC 2020 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go
if !attributes.IsResourceRequest() { return fmt.Sprintf("User %q cannot %s path %q", username, attributes.GetVerb(), attributes.GetPath()) } resource := attributes.GetResource() if subresource := attributes.GetSubresource(); len(subresource) > 0 { resource = resource + "/" + subresource } if ns := attributes.GetNamespace(); len(ns) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 16:18:47 UTC 2018 - 2.8K bytes - Viewed (0)