Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 50 for ContainerStateRunning (0.31 sec)

  1. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    				ContainerStatuses: []v1.ContainerStatus{
    					{
    						Name:        "fakeContainerName",
    						ContainerID: "docker://fakeContainerID",
    						State: v1.ContainerState{
    							Running: &v1.ContainerStateRunning{},
    						},
    					},
    				},
    			},
    			pspFound:  true,
    			updateErr: nil,
    			stAssignments: state.ContainerCPUAssignments{
    				"fakePodUID": map[string]cpuset.CPUSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  2. pkg/kubelet/container/helpers.go

    	// NOTE(random-liu): If all historical containers were GC'd, we'll also return true here.
    	if status == nil {
    		return true
    	}
    	// Check whether container is running
    	if status.State == ContainerStateRunning {
    		return false
    	}
    	// Always restart container in the unknown, or in the created state.
    	if status.State == ContainerStateUnknown || status.State == ContainerStateCreated {
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    				CreatedAt: createdAt,
    				StartedAt: startedAt,
    			},
    			expected: &kubecontainer.Status{
    				ID:        *cid,
    				Image:     imageSpec.Image,
    				State:     kubecontainer.ContainerStateRunning,
    				CreatedAt: time.Unix(0, createdAt),
    				StartedAt: time.Unix(0, startedAt),
    			},
    		},
    		"exited container": {
    			input: &runtimeapi.ContainerStatus{
    				Id:         cid.ID,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    					Name:        "foo1",
    					Image:       "busybox",
    					State:       v1.ContainerState{Running: &v1.ContainerStateRunning{}},
    				},
    				{
    					ContainerID: "://id2",
    					Name:        "foo2",
    					Image:       "busybox",
    					State:       v1.ContainerState{Running: &v1.ContainerStateRunning{}},
    				},
    				{
    					ContainerID: "://id3",
    					Name:        "foo3",
    					Image:       "busybox",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  5. pkg/kubelet/prober/common_test.go

    func getTestRunningStatusWithStarted(started bool) v1.PodStatus {
    	containerStatus := v1.ContainerStatus{
    		Name:        testContainerName,
    		ContainerID: testContainerID.String(),
    	}
    	containerStatus.State.Running = &v1.ContainerStateRunning{StartedAt: metav1.Now()}
    	containerStatus.Started = &started
    	podStatus := v1.PodStatus{
    		Phase:             v1.PodRunning,
    		ContainerStatuses: []v1.ContainerStatus{containerStatus},
    	}
    	return podStatus
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_test.go

    	return v1.ContainerStatus{
    		Name: cName,
    		State: v1.ContainerState{
    			Running: &v1.ContainerStateRunning{},
    		},
    	}
    }
    func startedState(cName string) v1.ContainerStatus {
    	started := true
    	return v1.ContainerStatus{
    		Name: cName,
    		State: v1.ContainerState{
    			Running: &v1.ContainerStateRunning{},
    		},
    		Started: &started,
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  7. pkg/api/testing/deep_copy_test.go

    				Type:   api.PodReady,
    				Status: api.ConditionTrue,
    			},
    		},
    		ContainerStatuses: []api.ContainerStatus{
    			{
    				Name: "etcd-container",
    				State: api.ContainerState{
    					Running: &api.ContainerStateRunning{
    						StartedAt: parseTimeOrDie("2015-04-22T11:49:32Z"),
    					},
    				},
    				Ready:        true,
    				RestartCount: 0,
    				Image:        "registry.k8s.io/etcd:2.0.9",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  8. pkg/kubelet/status/status_manager_test.go

    	}
    	testPod.Status.ContainerStatuses = []v1.ContainerStatus{
    		{Name: "test-1", State: v1.ContainerState{Running: &v1.ContainerStateRunning{}}},
    		{Name: "test-2", State: v1.ContainerState{Running: &v1.ContainerStateRunning{}}},
    		{Name: "test-3", State: v1.ContainerState{Running: &v1.ContainerStateRunning{}}},
    	}
    
    	syncer.TerminatePod(testPod)
    
    	t.Logf("we expect the container statuses to have changed to terminated")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  9. pkg/kubelet/pleg/evented_test.go

    			ID: types.UID(id),
    			SandboxStatuses: []*v1.PodSandboxStatus{
    				{Id: id},
    			},
    			ContainerStatuses: []*kubecontainer.Status{
    				{ID: kubecontainer.ContainerID{ID: id}, State: kubecontainer.ContainerStateRunning},
    			},
    		}
    
    		pleg.updateRunningPodMetric(podStatuses[i])
    		pleg.cache.Set(podStatuses[i].ID, podStatuses[i], nil, time.Now())
    
    	}
    	pleg.cache.UpdateTime(time.Now())
    
    	expectedMetric := `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 01 07:45:05 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. pkg/kubelet/runonce_test.go

    	// TODO(random-liu) Fix the test, make it meaningful.
    	fakeRuntime.PodStatus = kubecontainer.PodStatus{
    		ContainerStatuses: []*kubecontainer.Status{
    			{
    				Name:  "bar",
    				State: kubecontainer.ContainerStateRunning,
    			},
    		},
    	}
    	results, err := kb.runOnce(ctx, pods, time.Millisecond)
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	if results[0].Err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 06:59:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top