Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 31 for ContainerStateRunning (0.81 sec)

  1. pkg/kubelet/pleg/generic.go

    	switch state {
    	case kubecontainer.ContainerStateCreated:
    		// kubelet doesn't use the "created" state yet, hence convert it to "unknown".
    		return plegContainerUnknown
    	case kubecontainer.ContainerStateRunning:
    		return plegContainerRunning
    	case kubecontainer.ContainerStateExited:
    		return plegContainerExited
    	case kubecontainer.ContainerStateUnknown:
    		return plegContainerUnknown
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    					State: kubecontainer.ContainerStateUnknown,
    				},
    				{
    					Name:  "unknown",
    					State: kubecontainer.ContainerStateRunning,
    				},
    			},
    			reasons: map[string]error{},
    			oldStatuses: []v1.ContainerStatus{{
    				Name:  "unknown",
    				State: v1.ContainerState{Running: &v1.ContainerStateRunning{}},
    			}},
    			expectedState: map[string]v1.ContainerState{
    				"unknown": {Terminated: &v1.ContainerStateTerminated{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. pkg/kubelet/container/runtime.go

    const (
    	// ContainerStateCreated indicates a container that has been created (e.g. with docker create) but not started.
    	ContainerStateCreated State = "created"
    	// ContainerStateRunning indicates a currently running container.
    	ContainerStateRunning State = "running"
    	// ContainerStateExited indicates a container that ran and completed ("stopped" in other contexts, although a created container is technically also "stopped").
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container.go

    	for i := range pod.Spec.Containers {
    		container := &pod.Spec.Containers[i]
    		status := podStatus.FindContainerStatusByName(container.Name)
    		if status != nil && status.State == kubecontainer.ContainerStateRunning {
    			return nil, nil, true
    		}
    	}
    
    	// If there are failed containers, return the status of the last failed one.
    	for i := len(pod.Spec.InitContainers) - 1; i >= 0; i-- {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/helpers.go

    	switch state {
    	case runtimeapi.ContainerState_CONTAINER_CREATED:
    		return kubecontainer.ContainerStateCreated
    	case runtimeapi.ContainerState_CONTAINER_RUNNING:
    		return kubecontainer.ContainerStateRunning
    	case runtimeapi.ContainerState_CONTAINER_EXITED:
    		return kubecontainer.ContainerStateExited
    	case runtimeapi.ContainerState_CONTAINER_UNKNOWN:
    		return kubecontainer.ContainerStateUnknown
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top