- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 37 for PodDir (0.2 sec)
-
pkg/kubelet/kubelet_volumes_linux_test.go
podDir := kubelet.getPodDir("pod1uid") return os.MkdirAll(filepath.Join(podDir, "volumes/plugin/name"), 0750) }, validateFunc: func(kubelet *Kubelet) error { podDir := kubelet.getPodDir("pod1uid") return validateDirNotExists(podDir) }, }, "pod-doesnot-exist-with-volume-subdir": { prepareFunc: func(kubelet *Kubelet) error { podDir := kubelet.getPodDir("pod1uid")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 8.9K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_windows_test.go
pod := v1.Pod{ Spec: v1.PodSpec{ HostNetwork: true, }, } fhu := hostutil.NewFakeHostUtil(nil) fsp := &subpath.FakeSubpath{} podDir, err := os.MkdirTemp("", "test-rotate-logs") require.NoError(t, err) defer os.RemoveAll(podDir) mounts, _, err := makeMounts(&pod, podDir, &container, "fakepodname", "", []string{""}, podVolumes, fhu, fsp, nil, false) require.NoError(t, err) expectedMounts := []kubecontainer.Mount{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 4.1K bytes - Viewed (0) -
pkg/kubelet/volumemanager/reconciler/reconstruct_common.go
// and volume spec name. func getVolumesFromPodDir(podDir string) ([]podVolume, error) { podsDirInfo, err := os.ReadDir(podDir) if err != nil { return nil, err } volumes := []podVolume{} for i := range podsDirInfo { if !podsDirInfo[i].IsDir() { continue } podName := podsDirInfo[i].Name() podDir := filepath.Join(podDir, podName) // Find filesystem volume information
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 07:34:33 UTC 2024 - 14.1K bytes - Viewed (0) -
pkg/kubelet/kubelet_volumes.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 11.1K bytes - Viewed (0) -
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 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 14.6K bytes - Viewed (0) -
pkg/kubelet/userns/userns_manager_switch_test.go
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.UserNamespacesSupport, true) pods := []types.UID{"pod-1", "pod-2"} testUserNsPodsManager := &testUserNsPodsManager{ podDir: t.TempDir(), // List the same pods we will record, so the second time we create the userns // manager, it will find these pods on disk with userns data. podList: pods, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath.go
Path string // name of the volume that is a valid directory name. VolumeName string // Full path to the volume path VolumePath string // Path to the pod's directory, including pod UID PodDir string // Name of the container ContainerName string } // Compile time-check for all implementers of subpath interface var _ Interface = &subpath{} var _ Interface = &FakeSubpath{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 27 02:59:53 UTC 2019 - 3.3K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_linux.go
func New(mounter mount.Interface) Interface { return &subpath{ mounter: mounter, } } func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error { return doCleanSubPaths(sp.mounter, podDir, volumeName) } func (sp *subpath) SafeMakeDir(subdir string, base string, perm os.FileMode) error { realBase, err := filepath.EvalSymlinks(base) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 14:09:11 UTC 2022 - 21.4K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_runtime_helper.go
func (f *FakeRuntimeHelper) GeneratePodHostNameAndDomain(pod *v1.Pod) (string, string, error) { return f.HostName, f.HostDomain, f.Err } func (f *FakeRuntimeHelper) GetPodDir(podUID kubetypes.UID) string { return "/poddir/" + string(podUID) } func (f *FakeRuntimeHelper) GetExtraSupplementalGroupsForPod(pod *v1.Pod) []int64 { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 11:01:00 UTC 2024 - 2.4K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_unsupported.go
return nil } func (sp *subpath) PrepareSafeSubpath(subPath Subpath) (newHostPath string, cleanupAction func(), err error) { return subPath.Path, nil, errUnsupported } func (sp *subpath) CleanSubPaths(podDir string, volumeName string) error { return errUnsupported } func (sp *subpath) SafeMakeDir(pathname string, base string, perm os.FileMode) error { return errUnsupported
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.5K bytes - Viewed (0)