Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for UpdateAction (0.34 sec)

  1. plugin/pkg/admission/resourcequota/admission_test.go

    	}
    
    	decimatedActions := removeListWatch(kubeClient.Actions())
    	lastActionIndex := len(decimatedActions) - 1
    	usage := decimatedActions[lastActionIndex].(testcore.UpdateAction).GetObject().(*corev1.ResourceQuota)
    	expectedUsage := corev1.ResourceQuota{
    		Status: corev1.ResourceQuotaStatus{
    			Hard: corev1.ResourceList{
    				corev1.ResourceCPU:    resource.MustParse("3"),
    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

    		switch action := action.(type) {
    		case core.GetAction:
    			assert.Equal(t, pod.Name, action.GetName(), "Unexpected GetAction: %+v", action)
    		case core.UpdateAction:
    			assert.Equal(t, pod.Name, action.GetObject().(*v1.Pod).Name, "Unexpected UpdateAction: %+v", action)
    		default:
    			assert.Fail(t, "Unexpected Action: %+v", action)
    		}
    		return true, ret, err
    	})
    
    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/controller/history/controller_history_test.go

    	conflictSuccess := func(action core.Action) (bool, runtime.Object, error) {
    		defer func() {
    			conflictAttempts++
    		}()
    		switch action.(type) {
    
    		case core.UpdateActionImpl:
    			update := action.(core.UpdateAction)
    			if conflictAttempts < 2 {
    				return true, update.GetObject(), errors.NewConflict(update.GetResource().GroupResource(), "", fmt.Errorf("conflict"))
    			}
    			return true, update.GetObject(), nil
    		default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set_test.go

    			if action.GetName() != rs.Name {
    				t.Errorf("Expected get for ReplicaSet %v, got %+v instead", rs.Name, action.GetName())
    			}
    		case core.UpdateAction:
    			updates++
    			// Confirm that the update has the right status.Replicas even though the Get
    			// returned a ReplicaSet with replicas=1.
    			if c, ok := action.GetObject().(*apps.ReplicaSet); !ok {
    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