- Sort Score
- Result 10 results
- Languages All
Results 11 - 19 of 19 for GetSubresource (0.35 sec)
-
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/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) -
plugin/pkg/admission/podnodeselector/admission.go
return p.getNodeSelectorMap(namespace) } func shouldIgnore(a admission.Attributes) bool { resource := a.GetResource().GroupResource() if resource != api.Resource("pods") { return true } if a.GetSubresource() != "" { // only run the checks below on pods proper and not subresources return true } _, ok := a.GetObject().(*api.Pod) if !ok { klog.Errorf("expected pod but got %s", a.GetKind().Kind)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 8.3K bytes - Viewed (0) -
plugin/pkg/admission/runtimeclass/admission.go
} } return nil } func shouldIgnore(attributes admission.Attributes) bool { // Ignore all calls to subresources or resources other than pods. if len(attributes.GetSubresource()) != 0 || attributes.GetResource().GroupResource() != api.Resource("pods") { return true } return false
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 05 05:53:38 UTC 2024 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/request.go
if attribs.IsResourceRequest() { ev.ObjectRef = &auditinternal.ObjectReference{ 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.
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/registry/rest/create.go
obj, staticAttributes.GetOldObject(), staticAttributes.GetKind(), staticAttributes.GetNamespace(), name, staticAttributes.GetResource(), staticAttributes.GetSubresource(), staticAttributes.GetOperation(), staticAttributes.GetOperationOptions(), staticAttributes.IsDryRun(), staticAttributes.GetUserInfo(), )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 9.1K bytes - Viewed (0)