Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Traverse (0.1 sec)

  1. pkg/kubelet/kubelet_test.go

    	pods := []*v1.Pod{
    		podWithUIDNameNsSpec("123456789", "newpod", "foo", spec),
    		podWithUIDNameNsSpec("987654321", "oldpod", "foo", spec),
    	}
    	// Make sure the Pods are in the reverse order of creation time.
    	pods[1].CreationTimestamp = metav1.NewTime(time.Now())
    	pods[0].CreationTimestamp = metav1.NewTime(time.Now().Add(1 * time.Second))
    	// The newer pod should be rejected.
    	notfittingPod := pods[0]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_pods.go

    	containerStatusesCopy := make([]*kubecontainer.Status, len(podStatus.ContainerStatuses))
    	copy(containerStatusesCopy, podStatus.ContainerStatuses)
    
    	// Make the latest container status comes first.
    	sort.Sort(sort.Reverse(kubecontainer.SortContainerStatusesByCreationTime(containerStatusesCopy)))
    	// Set container statuses according to the statuses seen in pod status
    	containerSeen := map[string]int{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet.go

    }
    
    // SyncPod is the transaction script for the sync of a single pod (setting up)
    // a pod. This method is reentrant and expected to converge a pod towards the
    // desired state of the spec. The reverse (teardown) is handled in
    // SyncTerminatingPod and SyncTerminatedPod. If SyncPod exits without error,
    // then the pod runtime state is in sync with the desired configuration state
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top