- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for GetSubresource (0.18 sec)
-
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) -
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) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go
if len(parts) == 2 { return parts[0], parts[1] } return parts[0], "" } func (r *Matcher) resource() bool { opRes, opSub := r.Attr.GetResource().Resource, r.Attr.GetSubresource() for _, res := range r.Rule.Resources { res, sub := splitResource(res) resMatch := res == "*" || res == opRes subMatch := sub == "*" || sub == opSub if resMatch && subMatch { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:38:55 UTC 2022 - 3.7K bytes - Viewed (0) -
plugin/pkg/admission/namespace/exists/admission_test.go
if err == nil { actions := "" for _, action := range mockClient.Actions() { actions = actions + action.GetVerb() + ":" + action.GetResource().Resource + ":" + action.GetSubresource() + ", " } t.Errorf("expected error returned from admission handler: %v", actions) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 4.4K bytes - Viewed (0) -
pkg/kubelet/server/auth.go
attrs.Subresource = "checkpoint" } klog.V(5).InfoS("Node request attributes", "user", attrs.GetUser().GetName(), "verb", attrs.GetVerb(), "resource", attrs.GetResource(), "subresource", attrs.GetSubresource()) return attrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 18:09:38 UTC 2024 - 4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go
// going to change the object, and attr.Object will be a DeleteOptions // rather than a namespace object. if attr.GetResource().Resource == "namespaces" && len(attr.GetSubresource()) == 0 && (attr.GetOperation() == admission.Create || attr.GetOperation() == admission.Update) { accessor, err := meta.Accessor(attr.GetObject()) if err != nil { return nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 15 00:53:08 UTC 2023 - 4.4K bytes - Viewed (0) -
plugin/pkg/admission/network/defaultingressclass/admission.go
if attr.GetResource().GroupResource() != networkingv1.Resource("ingresses") { return nil } if len(attr.GetSubresource()) != 0 { return nil } ingress, ok := attr.GetObject().(*networking.Ingress) // if we can't convert then we don't handle this object so just return if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 11 01:48:45 UTC 2022 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/admission.go
func (a *QuotaAdmission) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) (err error) { // ignore all operations that correspond to sub-resource actions if attr.GetSubresource() != "" { return nil } // ignore all operations that are not namespaced or creation of namespaces if attr.GetNamespace() == "" || isNamespaceCreation(attr) { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 23 10:34:50 UTC 2022 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/policy/checker.go
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 != "" { combinedResource = resource + "/" + 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) -
pkg/controller/volume/expand/expand_controller_test.go
return true, test.pv, nil }) } fakeKubeClient.AddReactor("patch", "persistentvolumeclaims", func(action coretesting.Action) (bool, runtime.Object, error) { if action.GetSubresource() == "status" { patchActionaction, _ := action.(coretesting.PatchAction) pvc, err = applyPVCPatch(pvc, patchActionaction.GetPatch()) if err != nil { return false, nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 11:00:37 UTC 2024 - 7.9K bytes - Viewed (0)