- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 59 for pidStatus (0.17 sec)
-
pkg/kubelet/prober/common_test.go
containerStatus.Started = &started podStatus := v1.PodStatus{ Phase: v1.PodRunning, ContainerStatuses: []v1.ContainerStatus{containerStatus}, } return podStatus } func getTestPod() *v1.Pod { container := v1.Container{ Name: testContainerName, } pod := v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{container},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 12 16:57:26 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/controller/deployment/recreate_test.go
podMap: map[types.UID][]*v1.Pod{ "uid-1": { { Status: v1.PodStatus{ Phase: v1.PodFailed, }, }, { Status: v1.PodStatus{ Phase: v1.PodSucceeded, }, }, }, "uid-2": {}, "uid-3": { { Status: v1.PodStatus{ Phase: v1.PodPending, }, }, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 08 09:10:50 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/util/util.go
// (changed, new attempt, original sandboxID if exist). func PodSandboxChanged(pod *v1.Pod, podStatus *kubecontainer.PodStatus) (bool, uint32, string) { if len(podStatus.SandboxStatuses) == 0 { klog.V(2).InfoS("No sandbox for pod can be found. Need to start a new one", "pod", klog.KObj(pod)) return true, 0, "" } readySandboxCount := 0 for _, s := range podStatus.SandboxStatuses { if s.State == runtimeapi.PodSandboxState_SANDBOX_READY {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 13 23:14:48 UTC 2024 - 4.6K bytes - Viewed (0) -
pkg/controller/job/tracking_utils_test.go
Finalizers: []string{batch.JobTrackingFinalizer}, }, Status: v1.PodStatus{ Phase: v1.PodPending, }, }, }, "pod with finalizer fails": { oldPod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Finalizers: []string{batch.JobTrackingFinalizer}, }, Status: v1.PodStatus{ Phase: v1.PodRunning, }, }, newPod: &v1.Pod{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/zz_generated.deepcopy.go
*out = (*in).DeepCopy() } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus. func (in *PodStatus) DeepCopy() *PodStatus { if in == nil { return nil } out := new(PodStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/template_test.go
"emptyInfo": {v1.Pod{Status: v1.PodStatus{ContainerStatuses: []v1.ContainerStatus{}}}, "false"}, "fooExists": { v1.Pod{ Status: v1.PodStatus{ ContainerStatuses: []v1.ContainerStatus{ { Name: "foo", }, }, }, }, "false", }, "barExists": { v1.Pod{ Status: v1.PodStatus{ ContainerStatuses: []v1.ContainerStatus{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 22 23:10:00 UTC 2019 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/v1/zz_generated.deepcopy.go
*out = (*in).DeepCopy() } return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus. func (in *PodStatus) DeepCopy() *PodStatus { if in == nil { return nil } out := new(PodStatus) in.DeepCopyInto(out) return out
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 4.4K bytes - Viewed (0) -
pkg/kubelet/runonce_test.go
podManager.SetPods(pods) // The original test here is totally meaningless, because fakeruntime will always return an empty podStatus. While // the original logic of isPodRunning happens to return true when podstatus is empty, so the test can always pass. // Now the logic in isPodRunning is changed, to let the test pass, we set the podstatus directly in fake runtime.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 06:59:54 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/client/conditions/conditions_test.go
Type: watch.Added, Object: &corev1.Pod{ Status: corev1.PodStatus{ Phase: corev1.PodRunning, }, }, }, want: true, wantErr: false, }, { name: "Pod Status is PodFailed", event: watch.Event{ Type: watch.Added, Object: &corev1.Pod{ Status: corev1.PodStatus{ Phase: corev1.PodFailed, }, }, }, want: false,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 12 02:48:46 UTC 2023 - 3.1K bytes - Viewed (0) -
pkg/kubelet/active_deadline.go
return false } // get the latest status to determine if it was started podStatus, ok := m.podStatusProvider.GetPodStatus(pod.UID) if !ok { podStatus = pod.Status } // we have no start time so just return if podStatus.StartTime.IsZero() { return false } // determine if the deadline was exceeded start := podStatus.StartTime.Time duration := m.clock.Since(start)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 10 10:20:09 UTC 2021 - 3.2K bytes - Viewed (0)