Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for markPodReady (0.11 sec)

  1. pkg/controller/daemon/update_test.go

    				mapping := make(map[string][]*v1.Pod)
    				pod0 := newPod("pod-0", "node-0", simpleDaemonSetLabel, nil)
    				pod1 := newPod("pod-1", "node-1", simpleDaemonSetLabel, nil)
    				markPodReady(pod0)
    				markPodReady(pod1)
    				mapping["node-0"] = []*v1.Pod{pod0}
    				mapping["node-1"] = []*v1.Pod{pod1}
    				return mapping
    			}(),
    			maxUnavailable:         1,
    			desiredNumberScheduled: 2,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 10 21:10:35 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  2. pkg/controller/daemon/daemon_controller_test.go

    		t.Error(err)
    	}
    	fakePodControl.Clear()
    }
    
    func markPodsReady(store cache.Store) {
    	// mark pods as ready
    	for _, obj := range store.List() {
    		pod := obj.(*v1.Pod)
    		markPodReady(pod)
    	}
    }
    
    func markPodReady(pod *v1.Pod) {
    	condition := v1.PodCondition{Type: v1.PodReady, Status: v1.ConditionTrue}
    	podutil.UpdatePodCondition(&pod.Status, &condition)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
Back to top