- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for MakeAbsolutePath (0.2 sec)
-
pkg/volume/local/local.go
if m.readOnly { options = append(options, "ro") } mountOptions := util.JoinMountOptions(options, m.mountOptions) klog.V(4).Infof("attempting to mount %s", dir) globalPath := util.MakeAbsolutePath(runtime.GOOS, m.globalPath) err = m.mounter.MountSensitiveWithoutSystemd(globalPath, dir, "", mountOptions, nil) if err != nil { klog.Errorf("Mount of volume %s failed: %v", dir, err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 22.2K bytes - Viewed (0) -
pkg/volume/util/util.go
if strings.Contains(path, ":") { return false } if !(strings.HasPrefix(path, `/`) || strings.HasPrefix(path, `\`)) { return false } return true } // MakeAbsolutePath convert path to absolute path according to GOOS func MakeAbsolutePath(goos, path string) string { if goos != "windows" { return filepath.Clean("/" + path) } // These are all for windows // If there is a colon, give up.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container.go
} // Volume Mounts fail on Windows if it is not of the form C:/ containerLogPath = volumeutil.MakeAbsolutePath(goruntime.GOOS, containerLogPath) terminationMessagePath := volumeutil.MakeAbsolutePath(goruntime.GOOS, container.TerminationMessagePath) selinuxRelabel := selinux.GetEnabled() volumeMounts = append(volumeMounts, &runtimeapi.Mount{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 54.7K bytes - Viewed (0) -
pkg/volume/util/util_test.go
path: "\\:\\some\\path", expectedPath: "\\:\\some\\path", name: "windows path with colon", }, } for _, test := range tests { if runtime.GOOS == test.goos { path := MakeAbsolutePath(test.goos, test.path) if path != test.expectedPath { t.Errorf("[%s] Expected %s saw %s", test.name, test.expectedPath, path) } } } } func TestGetPodVolumeNames(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 28.7K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods.go
hostPath = volumeutil.MakeAbsolutePath(runtime.GOOS, hostPath) } containerPath := mount.MountPath // IsAbs returns false for UNC path/SMB shares/named pipes in Windows. So check for those specifically and skip MakeAbsolutePath if !volumeutil.IsWindowsUNCPath(runtime.GOOS, containerPath) && !utilfs.IsAbs(containerPath) { containerPath = volumeutil.MakeAbsolutePath(runtime.GOOS, containerPath) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 101.2K bytes - Viewed (0)