Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 186 for pidStatus (0.19 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_linux_test.go

    			Name:      "foo",
    			Namespace: "bar",
    		},
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Name:  "c1",
    					Image: "busybox",
    				},
    			},
    		},
    		Status: v1.PodStatus{},
    	}
    
    	for _, tc := range []struct {
    		name      string
    		scalingFg bool
    		limits    v1.ResourceList
    		requests  v1.ResourceList
    		cStatus   []v1.ContainerStatus
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		obj := &v1.PodList{}
    		podNamePrefix := "mypod"
    		namespace := "mynamespace"
    		for i := 0; i < 5; i++ {
    			podName := fmt.Sprintf("%s-%d", podNamePrefix, i)
    			pod := v1.Pod{
    				Status: v1.PodStatus{
    					Phase: v1.PodRunning,
    				},
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      podName,
    					UID:       types.UID(podName),
    					Namespace: namespace,
    					Labels: map[string]string{
    						"name": podName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  3. pkg/kubelet/nodeshutdown/nodeshutdown_manager_linux.go

    				}
    
    				m.logger.V(1).Info("Shutdown manager killing pod with gracePeriod", "pod", klog.KObj(pod), "gracePeriod", gracePeriodOverride)
    
    				if err := m.killPodFunc(pod, false, &gracePeriodOverride, func(status *v1.PodStatus) {
    					// set the pod status to failed (unless it was already in a successful terminal phase)
    					if status.Phase != v1.PodSucceeded {
    						status.Phase = v1.PodFailed
    					}
    					status.Message = nodeShutdownMessage
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 08:02:40 UTC 2022
    - 15.5K bytes
    - Viewed (0)
  4. pilot/pkg/xds/workload_test.go

    			},
    			Labels: map[string]string{
    				"app": sa,
    			},
    		},
    		Spec: corev1.PodSpec{
    			ServiceAccountName: sa,
    			NodeName:           node,
    		},
    		Status: corev1.PodStatus{
    			PodIP: ip,
    			PodIPs: []corev1.PodIP{
    				{
    					IP: ip,
    				},
    			},
    			Phase: corev1.PodRunning,
    			Conditions: []corev1.PodCondition{
    				{
    					Type:               corev1.PodReady,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. pkg/kubelet/config/config_test.go

    		pods := []*v1.Pod{
    			CreateValidPod("changeable-pod-0", "new"),
    			CreateValidPod("constant-pod-1", "new"),
    			CreateValidPod("constant-pod-2", "new"),
    		}
    		if touchStatus {
    			pods[0].Status = v1.PodStatus{Message: strconv.Itoa(rand.Int())}
    		}
    		if touchSpec {
    			pods[0].Spec.Containers[0].Name = strconv.Itoa(rand.Int())
    		}
    		return pods, pods[0]
    	}
    	for _, op := range []kubetypes.PodOperation{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. pkg/controller/testutil/test_utils.go

    func NewPod(name, host string) *v1.Pod {
    	pod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Namespace: "default",
    			Name:      name,
    		},
    		Spec: v1.PodSpec{
    			NodeName: host,
    		},
    		Status: v1.PodStatus{
    			Conditions: []v1.PodCondition{
    				{
    					Type:   v1.PodReady,
    					Status: v1.ConditionTrue,
    				},
    			},
    		},
    	}
    
    	return pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. pkg/api/testing/unstructured_test.go

    		// because in this test we are simply doing json operations, in which
    		// those disappear.
    		Funcs(
    			func(s *api.PodSpec, c fuzz.Continue) {
    				c.FuzzNoCustom(s)
    				s.InitContainers = nil
    			},
    			func(s *api.PodStatus, c fuzz.Continue) {
    				c.FuzzNoCustom(s)
    				s.InitContainerStatuses = nil
    			},
    		).Fuzz(internalObj)
    
    	item, err := legacyscheme.Scheme.New(externalVersion.WithKind(kind))
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  8. pkg/apis/core/fuzzer/fuzzer.go

    				s.SchedulerName = v1.DefaultSchedulerName
    			}
    			if s.EnableServiceLinks == nil {
    				enableServiceLinks := v1.DefaultEnableServiceLinks
    				s.EnableServiceLinks = &enableServiceLinks
    			}
    		},
    		func(s *core.PodStatus, c fuzz.Continue) {
    			c.Fuzz(&s)
    			s.HostIPs = []core.HostIP{{IP: s.HostIP}}
    		},
    		func(j *core.PodPhase, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. pkg/controller/resourceclaim/controller.go

    			statuses = append(statuses, corev1apply.PodResourceClaimStatus().WithName(podClaimName).WithResourceClaimName(resourceClaimName))
    		}
    		podApply := corev1apply.Pod(name, namespace).WithStatus(corev1apply.PodStatus().WithResourceClaimStatuses(statuses...))
    		if _, err := ec.kubeClient.CoreV1().Pods(namespace).ApplyStatus(ctx, podApply, metav1.ApplyOptions{FieldManager: fieldManager, Force: true}); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. pkg/kubelet/eviction/eviction_manager.go

    	klog.V(3).InfoS("Evicting pod", "pod", klog.KObj(pod), "podUID", pod.UID, "message", evictMsg)
    	err := m.killPodFunc(pod, true, &gracePeriodOverride, func(status *v1.PodStatus) {
    		status.Phase = v1.PodFailed
    		status.Reason = Reason
    		status.Message = evictMsg
    		if condition != nil {
    			podutil.UpdatePodCondition(status, condition)
    		}
    	})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top