Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 119 for pidStatus (0.17 sec)

  1. 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)
  2. 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)
  3. pkg/kube/krt/bench_test.go

    				Namespace: fmt.Sprintf("ns-%d", i%2),
    				Labels: map[string]string{
    					"app": fmt.Sprintf("app-%d", i%25),
    				},
    			},
    			Spec: v1.PodSpec{
    				ServiceAccountName: "fake-sa",
    			},
    			Status: v1.PodStatus{
    				Phase: v1.PodRunning,
    				PodIP: GetIP(),
    			},
    		})
    	}
    	initialServices := []*v1.Service{}
    	for i := 0; i < 50; i++ {
    		initialServices = append(initialServices, &v1.Service{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/job/job_controller_test.go

    					PodFailurePolicy: &batch.PodFailurePolicy{
    						Rules: onExitCodeRules,
    					},
    				},
    			},
    			pods: []v1.Pod{
    				{
    					Status: v1.PodStatus{
    						Phase: v1.PodRunning,
    					},
    				},
    				{
    					Status: v1.PodStatus{
    						Phase: v1.PodFailed,
    						ContainerStatuses: []v1.ContainerStatus{
    							{
    								Name: "main-container",
    								State: v1.ContainerState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. istioctl/pkg/internaldebug/internal-debug_test.go

    						Namespace: "istio-system",
    						Labels: map[string]string{
    							"app":                 "istiod",
    							label.IoIstioRev.Name: c.revision,
    						},
    					},
    					Status: corev1.PodStatus{
    						Phase: corev1.PodRunning,
    					},
    				}, metav1.CreateOptions{})
    				assert.NoError(t, err)
    			}
    			verifyExecTestOutput(t, DebugCommand(ctx), c)
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. pkg/controller/volume/attachdetach/metrics/metrics_test.go

    					VolumeSource: v1.VolumeSource{
    						PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{
    							ClaimName: "metric-test-pvc",
    						},
    					},
    				},
    			},
    		},
    		Status: v1.PodStatus{
    			Phase: v1.PodPhase("Running"),
    		},
    	}
    
    	fakePodInformer.Informer().GetStore().Add(pod)
    	pvcInformer := fakeInformerFactory.Core().V1().PersistentVolumeClaims()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/ingress/status_test.go

    			Name:      "ingressgateway",
    			Namespace: "istio-system",
    			Labels: map[string]string{
    				"istio": "ingressgateway",
    			},
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "foo_node",
    		},
    		Status: corev1.PodStatus{
    			Phase: corev1.PodRunning,
    		},
    	},
    	ingressService,
    	&corev1.Service{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "istio-ingress-hostname",
    			Namespace: IngressNamespace,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top