Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for runningPod (1.09 sec)

  1. pkg/scheduler/framework/plugins/nodevolumelimits/csi_test.go

    		{
    			newPod:       csiEBSOneVolPod,
    			existingPods: []*v1.Pod{runningPod, csiEBSTwoVolPod},
    			filterName:   "csi",
    			maxVols:      4,
    			driverNames:  []string{ebsCSIDriverName},
    			test:         "fits when node volume limit >= new pods CSI volume",
    			limitSource:  "node",
    		},
    		{
    			newPod:       csiEBSOneVolPod,
    			existingPods: []*v1.Pod{runningPod, csiEBSTwoVolPod},
    			filterName:   "csi",
    			maxVols:      2,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 18:07:11 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  2. pkg/kubelet/container/helpers.go

    			Hash:                containerStatus.Hash,
    			State:               containerStatus.State,
    		}
    		runningPod.Containers = append(runningPod.Containers, container)
    	}
    
    	// Populate sandboxes in kubecontainer.Pod
    	for _, sandbox := range podStatus.SandboxStatuses {
    		runningPod.Sandboxes = append(runningPod.Sandboxes, &Container{
    			ID:    ContainerID{Type: runtimeName, ID: sandbox.Id},
    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/controller/volume/persistentvolume/recycle_test.go

    // 2. Call the syncVolume *once*.
    // 3. Compare resulting volumes with expected volumes.
    func TestRecycleSync(t *testing.T) {
    	_, ctx := ktesting.NewTestContext(t)
    	runningPod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "runningPod",
    			Namespace: testNamespace,
    		},
    		Spec: v1.PodSpec{
    			Volumes: []v1.Volume{
    				{
    					Name: "vol1",
    					VolumeSource: v1.VolumeSource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. pkg/kubelet/container/testing/fake_runtime.go

    	}
    	return
    }
    
    func (f *FakeRuntime) KillPod(_ context.Context, pod *v1.Pod, runningPod kubecontainer.Pod, gracePeriodOverride *int64) error {
    	f.Lock()
    	defer f.Unlock()
    
    	f.CalledFunctions = append(f.CalledFunctions, "KillPod")
    	f.KilledPods = append(f.KilledPods, string(runningPod.ID))
    	for _, c := range runningPod.Containers {
    		f.KilledContainers = append(f.KilledContainers, c.Name)
    	}
    	return f.Err
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. pkg/kubelet/container/testing/runtime_mock.go

    func (m *MockRuntime) KillPod(ctx context.Context, pod *v1.Pod, runningPod container.Pod, gracePeriodOverride *int64) error {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "KillPod", ctx, pod, runningPod, gracePeriodOverride)
    	ret0, _ := ret[0].(error)
    	return ret0
    }
    
    // KillPod indicates an expected call of KillPod.
    func (mr *MockRuntimeMockRecorder) KillPod(ctx, pod, runningPod, gracePeriodOverride any) *gomock.Call {
    	mr.mock.ctrl.T.Helper()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. pkg/kubelet/container/runtime.go

    	Sandboxes []*Container
    }
    
    // PodPair contains both runtime#Pod and api#Pod
    type PodPair struct {
    	// APIPod is the v1.Pod
    	APIPod *v1.Pod
    	// RunningPod is the pod defined in pkg/kubelet/container/runtime#Pod
    	RunningPod *Pod
    }
    
    // ContainerID is a type that identifies a container.
    type ContainerID struct {
    	// The type of the container runtime. e.g. 'docker'.
    	Type string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  7. pkg/kubelet/userns/userns_manager_test.go

    			podSetBeforeCleanup:  []types.UID{"pod-1", "pod-2"},
    			runningPods:          []*kubecontainer.Pod{{ID: "pod-1"}},
    			podSetAfterCleanup:   []types.UID{"pod-1"},
    			podUnsetAfterCleanup: []types.UID{"pod-2"},
    		},
    		{
    			name:                 "pod set before cleanup but not listed ==> unset",
    			podSetBeforeCleanup:  []types.UID{"pod-1", "pod-2"},
    			runningPods:          []*kubecontainer.Pod{{ID: "pod-1"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_volumes.go

    func (kl *Kubelet) cleanupOrphanedPodDirs(pods []*v1.Pod, runningPods []*kubecontainer.Pod) error {
    	allPods := sets.New[string]()
    	for _, pod := range pods {
    		allPods.Insert(string(pod.UID))
    	}
    	for _, pod := range runningPods {
    		allPods.Insert(string(pod.ID))
    	}
    
    	found, err := kl.listPodsFromDisk()
    	if err != nil {
    		return err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. pkg/kubelet/server/server.go

    	s.restfulCont.Add(ws)
    
    	s.addMetricsBucketMatcher("configz")
    	configz.InstallHandler(s.restfulCont)
    
    	// The /runningpods endpoint is used for testing only.
    	s.addMetricsBucketMatcher("runningpods")
    	ws = new(restful.WebService)
    	ws.
    		Path("/runningpods/").
    		Produces(restful.MIME_JSON)
    	ws.Route(ws.GET("").
    		To(s.getRunningPods).
    		Operation("getRunningPods"))
    	s.restfulCont.Add(ws)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  10. pkg/kubelet/userns/userns_manager.go

    	if !utilfeature.DefaultFeatureGate.Enabled(features.UserNamespacesSupport) {
    		return nil
    	}
    
    	m.lock.Lock()
    	defer m.lock.Unlock()
    
    	allPods := sets.New[string]()
    	for _, pod := range pods {
    		allPods.Insert(string(pod.UID))
    	}
    	for _, pod := range runningPods {
    		allPods.Insert(string(pod.ID))
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top