diff --git a/pkg/volume/util/subpath/subpath_windows.go b/pkg/volume/util/subpath/subpath_windows.go index 79ffb859ed5..e71f960dd7b 100644 --- a/pkg/volume/util/subpath/subpath_windows.go +++ b/pkg/volume/util/subpath/subpath_windows.go @@ -55,6 +55,10 @@ func evalPath(path string) (linkedPath string, err error) { return "", err } linkedPath = strings.TrimSpace(string(output)) + if linkedPath == "" { + klog.V(4).Infof("Path '%s' has no target. Consiering it as evaluated.", path) + return path, nil + } if isVolumePrefix(linkedPath) { return path, err }