- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 68 for pidStatus (0.15 sec)
-
pkg/volume/util/util.go
func IsPodTerminated(pod *v1.Pod, podStatus v1.PodStatus) bool { // TODO: the guarantees provided by kubelet status are not sufficient to guarantee it's safe to ignore a deleted pod, // even if everything is notRunning (kubelet does not guarantee that when pod status is waiting that it isn't trying // to start a container).
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.8K bytes - Viewed (0) -
pkg/controller/podgc/gc_controller_test.go
pods = append(pods, &v1.Pod{ ObjectMeta: metav1.ObjectMeta{Name: pod.name, Namespace: metav1.NamespaceDefault, CreationTimestamp: metav1.Time{Time: creationTime}}, Status: v1.PodStatus{Phase: pod.phase, Reason: pod.reason}, Spec: v1.PodSpec{NodeName: "node"}, }) } client := setupNewSimpleClient(nodes, pods) gcc, podInformer, _ := NewFromClient(ctx, client, test.threshold)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 08:16:48 UTC 2024 - 29K bytes - Viewed (0) -
pkg/kubelet/container/helpers_test.go
Spec: v1.PodSpec{ Containers: []v1.Container{ {Name: "no-history"}, {Name: "alive"}, {Name: "succeed"}, {Name: "failed"}, {Name: "unknown"}, }, }, } podStatus := &PodStatus{ ID: pod.UID, Name: pod.Name, Namespace: pod.Namespace, ContainerStatuses: []*Status{ { Name: "alive", State: ContainerStateRunning, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 01:55:46 UTC 2024 - 24.5K bytes - Viewed (0) -
pkg/kubelet/stats/cadvisor_stats_provider_test.go
mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName0)).Return(v1.PodStatus{StartTime: &p0Time}, true) mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName1)).Return(v1.PodStatus{StartTime: &p1Time}, true) mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName2)).Return(v1.PodStatus{StartTime: &p2Time}, true) mockStatus.EXPECT().GetPodStatus(types.UID("UID"+pName3)).Return(v1.PodStatus{StartTime: &p3Time}, true)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 30.2K bytes - Viewed (0) -
pkg/controller/job/indexed_job_utils_test.go
Operator: batch.PodFailurePolicyOnExitCodesOpIn, Values: []int32{3}, }, }, }, }, }, }, pod: buildPod().indexFailureCount("0").status(v1.PodStatus{ Phase: v1.PodFailed, ContainerStatuses: []v1.ContainerStatus{ { State: v1.ContainerState{ Terminated: &v1.ContainerStateTerminated{ ExitCode: 3, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.9K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers_test.go
"k8s.io/utils/ptr" ) type podStatusProviderFunc func(uid types.UID, name, namespace string) (*kubecontainer.PodStatus, error) func (f podStatusProviderFunc) GetPodStatus(_ context.Context, uid types.UID, name, namespace string) (*kubecontainer.PodStatus, error) { return f(uid, name, namespace) } func TestIsInitContainerFailed(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.7K bytes - Viewed (0) -
pkg/kubelet/util/pod_startup_latency_tracker_test.go
} if err := testutil.GatherAndCompare(metrics.GetGather(), strings.NewReader(wants), metricsName); err != nil { t.Fatal(err) } podStarted := &corev1.Pod{ Status: corev1.PodStatus{ StartTime: &metav1.Time{Time: frozenTime.Add(-10 * time.Minute)}, }, } tracker.ObservedPodOnWatch(podStarted, frozenTime) assert.Empty(t, tracker.pods) metrics.PodStartSLIDuration.Reset() })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 06:09:49 UTC 2023 - 13.7K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager.go
} success = append(success, reconciledContainer{pod.Name, container.Name, containerID}) } } return success, failure } func findContainerIDByName(status *v1.PodStatus, name string) (string, error) { allStatuses := status.InitContainerStatuses allStatuses = append(allStatuses, status.ContainerStatuses...) for _, container := range allStatuses {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 19.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go
DNSPolicy: corev1.DNSClusterFirst, TerminationGracePeriodSeconds: &grace, SecurityContext: &corev1.PodSecurityContext{}, } } func V1DeepEqualSafePodStatus() corev1.PodStatus { return corev1.PodStatus{ Conditions: []corev1.PodCondition{ { Status: corev1.ConditionTrue, Type: corev1.PodReady, }, }, } } func TestHelperDelete(t *testing.T) { tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 09:47:52 UTC 2023 - 25.2K bytes - Viewed (0) -
pkg/kubelet/preemption/preemption.go
klog.V(3).InfoS("Preempting pod to free up resources", "pod", klog.KObj(pod), "podUID", pod.UID, "insufficientResources", insufficientResources) err := c.killPodFunc(pod, true, nil, func(status *v1.PodStatus) { status.Phase = v1.PodFailed status.Reason = events.PreemptContainer status.Message = message if utilfeature.DefaultFeatureGate.Enabled(features.PodDisruptionConditions) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 16:53:19 UTC 2023 - 11.5K bytes - Viewed (0)