- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 208 for podStates (0.16 sec)
-
pkg/kubelet/kubelet_test.go
}, } pods := []*v1.Pod{pod} kl.podManager.SetPods(pods) podStatus := &kubecontainer.PodStatus{ID: pod.UID} gracePeriodOverride := int64(0) err := kl.SyncTerminatingPod(context.Background(), pod, podStatus, &gracePeriodOverride, func(podStatus *v1.PodStatus) { podStatus.Phase = v1.PodFailed podStatus.Reason = "reason" podStatus.Message = "message" }) require.NoError(t, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
pkg/kube/krt/collection_test.go
pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "name", Namespace: "namespace", }, } pc.Create(pod) assert.Equal(t, fetcherSorted(SimplePods)(), nil) pod.Status = corev1.PodStatus{PodIP: "1.2.3.4"} pc.UpdateStatus(pod) assert.EventuallyEqual(t, fetcherSorted(SimplePods), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}}) pod.Status.PodIP = "1.2.3.5" pc.UpdateStatus(pod)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 14.6K bytes - Viewed (0) -
pkg/kubelet/config/http_test.go
SecurityContext: &v1.PodSecurityContext{}, SchedulerName: v1.DefaultSchedulerName, }, Status: v1.PodStatus{ Phase: v1.PodPending, }, }, expected: CreatePodUpdate(kubetypes.SET, kubetypes.HTTPSource, &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ UID: "111",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 14 09:38:23 UTC 2022 - 11.2K bytes - Viewed (0) -
pkg/kubelet/pleg/generic.go
} // When we use Generic PLEG only, the PodStatus is saved in the cache without // any validation of the existing status against the current timestamp. // This works well when there is only Generic PLEG setting the PodStatus in the cache however, // if we have multiple entities, such as Evented PLEG, while trying to set the PodStatus in the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 19.3K bytes - Viewed (0) -
pkg/kubelet/pod_container_deletor_test.go
package kubelet import ( "reflect" "testing" "time" kubecontainer "k8s.io/kubernetes/pkg/kubelet/container" ) func TestGetContainersToDeleteInPodWithFilter(t *testing.T) { pod := kubecontainer.PodStatus{ ContainerStatuses: []*kubecontainer.Status{ { ID: kubecontainer.ContainerID{Type: "test", ID: "1"}, Name: "foo", CreatedAt: time.Now(), State: kubecontainer.ContainerStateExited,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 19 15:48:08 UTC 2020 - 5.8K bytes - Viewed (0) -
pkg/kubelet/prober/prober_manager_test.go
Name: "terminated_container", ContainerID: "test://terminated_container_id", State: v1.ContainerState{ Terminated: &v1.ContainerStateTerminated{}, }, } podStatus := v1.PodStatus{ Phase: v1.PodRunning, ContainerStatuses: []v1.ContainerStatus{ unprobed, probedReady, probedPending, probedUnready, notStartedNoReadiness, startedNoReadiness, terminated, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 18.8K bytes - Viewed (0) -
pkg/kubelet/pod_workers_test.go
kl.pod, kl.mirrorPod, kl.podStatus = pod, mirrorPod, podStatus kl.wg.Done() return false, nil } func (kl *simpleFakeKubelet) SyncTerminatingPod(ctx context.Context, pod *v1.Pod, podStatus *kubecontainer.PodStatus, gracePeriod *int64, podStatusFn func(*v1.PodStatus)) error { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 75.6K bytes - Viewed (0) -
pkg/kubelet/container/runtime.go
// not managed by kubelet. Hash uint64 // State is the state of the container. State State } // PodStatus represents the status of the pod and its containers. // v1.PodStatus can be derived from examining PodStatus and v1.Pod. type PodStatus struct { // ID of the pod. ID types.UID // Name of the pod. Name string // Namespace of the pod. Namespace string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 27.8K bytes - Viewed (0) -
pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/kubelet/pleg/generic_test.go
pleg.Relist() actualEvents := getEventsFromChannel(ch) cases := []struct { pod *kubecontainer.Pod status *kubecontainer.PodStatus error error }{ {pod: pods[0], status: statuses[0], error: nil}, {pod: pods[1], status: &kubecontainer.PodStatus{}, error: statusErr}, } for i, c := range cases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 24.8K bytes - Viewed (0)