Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getKubeletSandboxes (0.17 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    		}
    	}
    
    	return wc, nil
    }
    
    // getKubeletSandboxes lists all (or just the running) sandboxes managed by kubelet.
    func (m *kubeGenericRuntimeManager) getKubeletSandboxes(ctx context.Context, all bool) ([]*runtimeapi.PodSandbox, error) {
    	var filter *runtimeapi.PodSandboxFilter
    	if !all {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    	containers, err := cgc.manager.getKubeletContainers(ctx, true)
    	if err != nil {
    		return err
    	}
    
    	sandboxes, err := cgc.manager.getKubeletSandboxes(ctx, true)
    	if err != nil {
    		return err
    	}
    
    	// collect all the PodSandboxId of container
    	sandboxIDs := sets.New[string]()
    	for _, container := range containers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_manager.go

    func (m *kubeGenericRuntimeManager) GetPods(ctx context.Context, all bool) ([]*kubecontainer.Pod, error) {
    	pods := make(map[kubetypes.UID]*kubecontainer.Pod)
    	sandboxes, err := m.getKubeletSandboxes(ctx, all)
    	if err != nil {
    		return nil, err
    	}
    	for i := range sandboxes {
    		s := sandboxes[i]
    		if s.Metadata == nil {
    			klog.V(4).InfoS("Sandbox does not have metadata", "sandbox", s)
    			continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 64.7K bytes
    - Viewed (0)
Back to top