diff --git a/pkg/api/pod/warnings.go b/pkg/api/pod/warnings.go index 7ef6e99bdd7..3b723d8d86d 100644 --- a/pkg/api/pod/warnings.go +++ b/pkg/api/pod/warnings.go @@ -515,7 +515,7 @@ func checkVolumeMappingForOverlap(paths []pathAndSource) []string { } func checkForOverlap(haystack []pathAndSource, needle pathAndSource) []pathAndSource { - pathSeparator := string(os.PathSeparator) + pathSeparator := `/` // this check runs in the API server, use the OS-agnostic separator if needle.path == "" { return nil