Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for ContainerStateRunning (0.78 sec)

  1. pkg/kubelet/util/pod_startup_latency_tracker_test.go

    	})
    }
    
    func buildRunningPod() *corev1.Pod {
    	return buildPodWithStatus([]corev1.ContainerStatus{
    		{State: corev1.ContainerState{Running: &corev1.ContainerStateRunning{StartedAt: metav1.NewTime(frozenTime)}}},
    	})
    }
    
    func buildPodWithStatus(cs []corev1.ContainerStatus) *corev1.Pod {
    	return &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 06:09:49 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  2. pkg/kubelet/status/generate_test.go

    		{
    			spec: oneRestartableInitContainer,
    			containerStatuses: []v1.ContainerStatus{
    				getNotStartedStatus("1234"),
    				{
    					Name: "regular",
    					State: v1.ContainerState{
    						Running: &v1.ContainerStateRunning{},
    					},
    				},
    			},
    			podPhase: v1.PodRunning,
    			expected: v1.PodCondition{
    				Status: v1.ConditionTrue,
    			},
    		},
    	}
    
    	for _, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 15:18:11 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    }
    
    func containerSucceeded(c *v1.Container, podStatus *kubecontainer.PodStatus) bool {
    	cStatus := podStatus.FindContainerStatusByName(c.Name)
    	if cStatus == nil || cStatus.State == kubecontainer.ContainerStateRunning {
    		return false
    	}
    	return cStatus.ExitCode == 0
    }
    
    func isInPlacePodVerticalScalingAllowed(pod *v1.Pod) bool {
    	if !utilfeature.DefaultFeatureGate.Enabled(features.InPlacePodVerticalScaling) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. pkg/registry/core/pod/storage/storage_test.go

    				},
    			},
    			PodIPs: []api.PodIP{{IP: "10.1.2.3"}},
    			Phase:  api.PodPending,
    			ContainerStatuses: []api.ContainerStatus{
    				{Name: "ctr1", State: api.ContainerState{Running: &api.ContainerStateRunning{}}, RestartCount: 10, Ready: true},
    				{Name: "ctr2", State: api.ContainerState{Waiting: &api.ContainerStateWaiting{}}, RestartCount: 0},
    			},
    			NominatedNodeName: "nominated-node",
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/zz_generated.conversion.go

    	}
    	if err := s.AddGeneratedConversionFunc((*v1.ContainerStateRunning)(nil), (*core.ContainerStateRunning)(nil), func(a, b interface{}, scope conversion.Scope) error {
    		return Convert_v1_ContainerStateRunning_To_core_ContainerStateRunning(a.(*v1.ContainerStateRunning), b.(*core.ContainerStateRunning), scope)
    	}); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  6. pkg/kubelet/container/helpers_test.go

    			},
    		},
    	}
    	podStatus := &PodStatus{
    		ID:        pod.UID,
    		Name:      pod.Name,
    		Namespace: pod.Namespace,
    		ContainerStatuses: []*Status{
    			{
    				Name:  "alive",
    				State: ContainerStateRunning,
    			},
    			{
    				Name:     "succeed",
    				State:    ContainerStateExited,
    				ExitCode: 0,
    			},
    			{
    				Name:     "failed",
    				State:    ContainerStateExited,
    				ExitCode: 1,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. pkg/apis/core/validation/validation_test.go

    					ImageID:     "docker-pullable://nginx@sha256:d0gf00d",
    					Name:        "nginx",
    					Ready:       true,
    					Started:     proto.Bool(true),
    					State: core.ContainerState{
    						Running: &core.ContainerStateRunning{
    							StartedAt: metav1.NewTime(time.Now()),
    						},
    					},
    				}},
    			},
    		},
    		core.Pod{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "foo",
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 857.7K bytes
    - Viewed (0)
  8. pkg/apis/core/zz_generated.deepcopy.go

    func (in *ContainerStateRunning) DeepCopyInto(out *ContainerStateRunning) {
    	*out = *in
    	in.StartedAt.DeepCopyInto(&out.StartedAt)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerStateRunning.
    func (in *ContainerStateRunning) DeepCopy() *ContainerStateRunning {
    	if in == nil {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    func (in *ContainerStateRunning) DeepCopyInto(out *ContainerStateRunning) {
    	*out = *in
    	in.StartedAt.DeepCopyInto(&out.StartedAt)
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerStateRunning.
    func (in *ContainerStateRunning) DeepCopy() *ContainerStateRunning {
    	if in == nil {
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods.go

    			ContainerID: cid,
    		}
    		if oldStatus != nil {
    			status.VolumeMounts = oldStatus.VolumeMounts // immutable
    		}
    		switch {
    		case cs.State == kubecontainer.ContainerStateRunning:
    			status.State.Running = &v1.ContainerStateRunning{StartedAt: metav1.NewTime(cs.StartedAt)}
    		case cs.State == kubecontainer.ContainerStateCreated:
    			// containers that are created but not running are "waiting to be running"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top