Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetPodDir (0.13 sec)

  1. pkg/kubelet/kubelet_getters.go

    	return filepath.Join(kl.getVolumeDevicePluginsDir(), pluginName, config.DefaultKubeletVolumeDevicesDirName)
    }
    
    // GetPodDir returns the full path to the per-pod data directory for the
    // specified pod. This directory may not exist if the pod does not exist.
    func (kl *Kubelet) GetPodDir(podUID types.UID) string {
    	return kl.getPodDir(podUID)
    }
    
    // ListPodsFromDisk gets a list of pods that have data directories.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 00:48:07 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. pkg/kubelet/userns/userns_manager.go

    // since Go maps never free memory.
    const mapReInitializeThreshold = 1000
    
    type userNsPodsManager interface {
    	HandlerSupportsUserNamespaces(runtimeHandler string) (bool, error)
    	GetPodDir(podUID types.UID) string
    	ListPodsFromDisk() ([]types.UID, error)
    	GetKubeletMappings() (uint32, uint32, error)
    	GetMaxPods() int
    }
    
    type UsernsManager struct {
    	used    *allocator.AllocationBitmap
    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/userns/userns_manager_test.go

    type testUserNsPodsManager struct {
    	podDir         string
    	podList        []types.UID
    	userns         bool
    	maxPods        int
    	mappingFirstID uint32
    	mappingLen     uint32
    }
    
    func (m *testUserNsPodsManager) GetPodDir(podUID types.UID) string {
    	if m.podDir == "" {
    		return "/tmp/non-existant-dir.This-is-not-used-in-tests"
    	}
    	return m.podDir
    }
    
    func (m *testUserNsPodsManager) ListPodsFromDisk() ([]types.UID, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_volumes.go

    			// one here.
    			continue
    		}
    
    		// Call RemoveAllOneFilesystem for remaining subdirs under the pod directory
    		podDir := kl.getPodDir(uid)
    		podSubdirs, err := os.ReadDir(podDir)
    		if err != nil {
    			errorPods++
    			klog.ErrorS(err, "Could not read directory", "path", podDir)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. pkg/kubelet/container/helpers.go

    	GetPodDNS(pod *v1.Pod) (dnsConfig *runtimeapi.DNSConfig, err error)
    	// GetPodCgroupParent returns the CgroupName identifier, and its literal cgroupfs form on the host
    	// of a pod.
    	GetPodCgroupParent(pod *v1.Pod) string
    	GetPodDir(podUID types.UID) string
    	GeneratePodHostNameAndDomain(pod *v1.Pod) (hostname string, hostDomain string, err error)
    	// GetExtraSupplementalGroupsForPod returns a list of the extra
    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