Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for GetSubresource (0.34 sec)

  1. pkg/kubelet/server/server.go

    			msg := fmt.Sprintf("Authorization error (user=%s, verb=%s, resource=%s, subresource=%s)", attrs.GetUser().GetName(), attrs.GetVerb(), attrs.GetResource(), attrs.GetSubresource())
    			resp.WriteErrorString(http.StatusInternalServerError, msg)
    			return
    		}
    		if decision != authorizer.DecisionAllow {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  2. 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)
  3. plugin/pkg/admission/certificates/ctbattest/admission_test.go

    	admission.Attributes // nil panic if any other methods called
    }
    
    func (t *testAttributes) GetResource() schema.GroupVersionResource {
    	return t.resource.WithVersion("ignored")
    }
    
    func (t *testAttributes) GetSubresource() string {
    	return t.subresource
    }
    
    func (t *testAttributes) GetObject() runtime.Object {
    	return t.obj
    }
    
    func (t *testAttributes) GetOldObject() runtime.Object {
    	return t.oldObj
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. plugin/pkg/admission/resourcequota/admission_test.go

    	)
    	actionSet := sets.NewString()
    	for _, action := range kubeClient.Actions() {
    		actionSet.Insert(strings.Join([]string{action.GetVerb(), action.GetResource().Resource, action.GetSubresource()}, "-"))
    	}
    	if !actionSet.HasAll(expectedActionSet.List()...) {
    		t.Errorf("Expected actions:\n%v\n but got:\n%v\nDifference:\n%v", expectedActionSet, actionSet, expectedActionSet.Difference(actionSet))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/apiserver/pkg/registry/rest/delete.go

    			old.DeepCopyObject(),
    			staticAttributes.GetKind(),
    			staticAttributes.GetNamespace(),
    			staticAttributes.GetName(),
    			staticAttributes.GetResource(),
    			staticAttributes.GetSubresource(),
    			staticAttributes.GetOperation(),
    			staticAttributes.GetOperationOptions(),
    			staticAttributes.IsDryRun(),
    			staticAttributes.GetUserInfo(),
    		)
    		if mutating {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 07 17:43:41 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  9. plugin/pkg/admission/imagepolicy/admission.go

    	// Ignore all calls to subresources other than ephemeralcontainers or calls to resources other than pods.
    	subresource := attributes.GetSubresource()
    	if (subresource != "" && subresource != ephemeralcontainers) || attributes.GetResource().GroupResource() != api.Resource("pods") {
    		return nil
    	}
    
    	pod, ok := attributes.GetObject().(*api.Pod)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  10. 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)
Back to top