Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 122 for podAdd (0.28 sec)

  1. pkg/kubelet/volume_host.go

    }
    
    func (kvh *kubeletVolumeHost) GetPodVolumeDir(podUID types.UID, pluginName string, volumeName string) string {
    	dir := kvh.kubelet.getPodVolumeDir(podUID, pluginName, volumeName)
    	if runtime.GOOS == "windows" {
    		dir = util.GetWindowsPath(dir)
    	}
    	return dir
    }
    
    func (kvh *kubeletVolumeHost) GetPodVolumeDeviceDir(podUID types.UID, pluginName string) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_sandbox.go

    	}
    	if state != nil {
    		filter.State = &runtimeapi.PodSandboxStateValue{
    			State: *state,
    		}
    	}
    	sandboxes, err := m.runtimeService.ListPodSandbox(ctx, filter)
    	if err != nil {
    		klog.ErrorS(err, "Failed to list sandboxes for pod", "podUID", podUID)
    		return nil, err
    	}
    
    	if len(sandboxes) == 0 {
    		return nil, nil
    	}
    
    	// Sort with newest first.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. pkg/kubelet/stats/cadvisor_stats_provider.go

    	}
    	return managed
    }
    
    // getCadvisorPodInfoFromPodUID returns a pod cgroup information by matching the podUID with its CgroupName identifier base name
    func getCadvisorPodInfoFromPodUID(podUID types.UID, infos map[string]cadvisorapiv2.ContainerInfo) *cadvisorapiv2.ContainerInfo {
    	if info, found := infos[cm.GetPodCgroupNameSuffix(podUID)]; found {
    		return &info
    	}
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    			sandboxInfo.active = true
    		}
    
    		sandboxesByPod[podUID] = append(sandboxesByPod[podUID], sandboxInfo)
    	}
    
    	for podUID, sandboxes := range sandboxesByPod {
    		if cgc.podStateProvider.ShouldPodContentBeRemoved(podUID) || (evictNonDeletedPods && cgc.podStateProvider.ShouldPodRuntimeBeRemoved(podUID)) {
    			// Remove all evictable sandboxes if the pod has been removed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/dra/claiminfo_test.go

    			expectedLen: 2,
    		},
    	} {
    		t.Run(test.description, func(t *testing.T) {
    			test.claimInfo.addPodReference(podUID)
    			assert.True(t, test.claimInfo.hasPodReference(podUID))
    			assert.Len(t, test.claimInfo.PodUIDs, test.expectedLen)
    		})
    	}
    }
    
    func TestClaimInfoHasPodReference(t *testing.T) {
    	podUID := types.UID("pod-uid")
    	for _, test := range []struct {
    		description    string
    		claimInfo      *ClaimInfo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_plugin.go

    func (p *csiPlugin) NewUnmounter(specName string, podUID types.UID) (volume.Unmounter, error) {
    	klog.V(4).Infof(log("setting up unmounter for [name=%v, podUID=%v]", specName, podUID))
    
    	kvh, ok := p.host.(volume.KubeletVolumeHost)
    	if !ok {
    		return nil, errors.New(log("cast from VolumeHost to KubeletVolumeHost failed"))
    	}
    
    	unmounter := &csiMountMgr{
    		plugin:       p,
    		podUID:       podUID,
    		specVolumeID: specName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    }
    
    func (s *mockState) SetCPUSet(podUID string, containerName string, cset cpuset.CPUSet) {
    	if _, exists := s.assignments[podUID]; !exists {
    		s.assignments[podUID] = make(map[string]cpuset.CPUSet)
    	}
    	s.assignments[podUID][containerName] = cset
    }
    
    func (s *mockState) SetDefaultCPUSet(cset cpuset.CPUSet) {
    	s.defaultCPUSet = cset
    }
    
    func (s *mockState) Delete(podUID string, containerName string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  8. pkg/volume/util/util.go

    	podVolumeMapPath,
    	volumeMapName string,
    	podUID utypes.UID,
    ) error {
    	// map devicePath to global node path as bind mount
    	mapErr := blkUtil.MapDevice(devicePath, globalMapPath, string(podUID), true /* bindMount */)
    	if mapErr != nil {
    		return fmt.Errorf("blkUtil.MapDevice failed. devicePath: %s, globalMapPath:%s, podUID: %s, bindMount: %v: %v",
    			devicePath, globalMapPath, string(podUID), true, mapErr)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  9. pkg/volume/configmap/configmap.go

    	}, nil
    }
    
    func (plugin *configMapPlugin) NewUnmounter(volName string, podUID types.UID) (volume.Unmounter, error) {
    	return &configMapVolumeUnmounter{
    		&configMapVolume{
    			volName,
    			podUID,
    			plugin,
    			plugin.host.GetMounter(plugin.GetPluginName()),
    			volume.NewCachedMetrics(volume.NewMetricsDu(getPath(podUID, volName, plugin.host))),
    		},
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. pkg/volume/testing/volume_host.go

    }
    
    func (f *fakeVolumeHost) GetPodVolumeDir(podUID types.UID, pluginName, volumeName string) string {
    	return filepath.Join(f.rootDir, "pods", string(podUID), "volumes", pluginName, volumeName)
    }
    
    func (f *fakeVolumeHost) GetPodVolumeDeviceDir(podUID types.UID, pluginName string) string {
    	return filepath.Join(f.rootDir, "pods", string(podUID), "volumeDevices", pluginName)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top