Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for runningPod (0.26 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/pod_workers_test.go

    				return nil
    			},
    			syncTerminatingRuntimePod: func(ctx context.Context, runningPod *kubecontainer.Pod) error {
    				func() {
    					lock.Lock()
    					defer lock.Unlock()
    					processed[runningPod.ID] = append(processed[runningPod.ID], syncPodRecord{
    						name:       runningPod.Name,
    						updateType: kubetypes.SyncPodKill,
    						runningPod: runningPod,
    					})
    				}()
    				return nil
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  3. 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)
  4. pkg/kubelet/kuberuntime/kuberuntime_container.go

    				killContainerResult.Fail(kubecontainer.ErrKillContainer, err.Error())
    				// Use runningPod for logging as the pod passed in could be *nil*.
    				klog.ErrorS(err, "Kill container failed", "pod", klog.KRef(runningPod.Namespace, runningPod.Name), "podUID", runningPod.ID,
    					"containerName", container.Name, "containerID", container.ID)
    			}
    			containerResults <- killContainerResult
    		}(container)
    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/kuberuntime_manager.go

    func (m *kubeGenericRuntimeManager) KillPod(ctx context.Context, pod *v1.Pod, runningPod kubecontainer.Pod, gracePeriodOverride *int64) error {
    	err := m.killPodWithSyncResult(ctx, pod, runningPod, gracePeriodOverride)
    	return err.Error()
    }
    
    // killPodWithSyncResult kills a runningPod and returns SyncResult.
    // Note: The pod passed in could be *nil* when kubelet restarted.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_pods_test.go

    	runtimePod := func(pod *v1.Pod) *kubecontainer.Pod {
    		runningPod := &kubecontainer.Pod{
    			ID:        types.UID(pod.UID),
    			Name:      pod.Name,
    			Namespace: pod.Namespace,
    			Containers: []*kubecontainer.Container{
    				{Name: "container-1", ID: kubecontainer.ContainerID{Type: "test", ID: "c1"}},
    			},
    		}
    		for i, container := range pod.Spec.Containers {
    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/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)
  8. pkg/kubelet/kubelet_pods.go

    				RunningPod:     runningPod,
    				KillPodOptions: killPodOptions,
    			})
    
    			// the running pod is now known as well
    			workingPods[runningPod.ID] = PodWorkerSync{State: TerminatingPod, Orphan: true}
    			orphanCount++
    		}
    	}
    	metrics.OrphanedRuntimePodTotal.Add(float64(orphanCount))
    
    	// Now that we have recorded any terminating pods, and added new pods that should 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)
  9. pkg/kubelet/kubelet_test.go

    	testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */)
    	defer testKubelet.Cleanup()
    	runningPod := &kubecontainer.Pod{
    		ID:        "12345678",
    		Name:      "pod1",
    		Namespace: "ns",
    	}
    	apiPod := podWithUIDNameNs(runningPod.ID, runningPod.Name, runningPod.Namespace)
    
    	// Sync once to create pod directory; confirm that the pod directory has
    	// already been created.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet.go

    		// While resize is in progress, periodically call PLEG to update pod cache
    		runningPod := kubecontainer.ConvertPodStatusToRunningPod(kl.getRuntime().Type(), podStatus)
    		if err, _ := kl.pleg.UpdateCache(&runningPod, pod.UID); err != nil {
    			klog.ErrorS(err, "Failed to update pod cache", "pod", klog.KObj(pod))
    			return false, err
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top