Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetSubresource (0.17 sec)

  1. 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)
  2. pkg/kubelet/status/status_manager_test.go

    	}
    	for i := 0; i < len(actions); i++ {
    		e := expectedActions[i]
    		a := actions[i]
    		if !a.Matches(e.GetVerb(), e.GetResource().Resource) || a.GetSubresource() != e.GetSubresource() {
    			t.Errorf("unexpected actions: %s", cmp.Diff(expectedActions, actions))
    		}
    	}
    }
    
    func verifyUpdates(t *testing.T, manager *manager, expectedUpdates int) {
    	t.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/reconciler/reconciler_test.go

    		return true, pv, nil
    	})
    	fakeClient.AddReactor("patch", "persistentvolumeclaims", func(action core.Action) (bool, runtime.Object, error) {
    		if action.GetSubresource() == "status" {
    			return true, pvc, nil
    		}
    		return true, nil, fmt.Errorf("no reaction implemented for %s", action)
    	})
    	fakeClient.AddReactor("*", "*", func(action core.Action) (bool, runtime.Object, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 07:34:33 UTC 2024
    - 75.4K bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set_test.go

    	rs := newReplicaSet(1, labelMap)
    	client := fake.NewSimpleClientset(rs)
    	client.PrependReactor("update", "replicasets",
    		func(action core.Action) (bool, runtime.Object, error) {
    			if action.GetSubresource() != "status" {
    				return false, nil, nil
    			}
    			return true, nil, errors.New("failed to update status")
    		})
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top