Skip to content

Commit 3fb2a38

Browse files
authored
Merge pull request kubernetes#129252 from liggitt/path-warnings
Use OS-agnostic path separator in pod warnings check
2 parents 3ec97a4 + 0442663 commit 3fb2a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/pod/warnings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ func checkVolumeMappingForOverlap(paths []pathAndSource) []string {
515515
}
516516

517517
func checkForOverlap(haystack []pathAndSource, needle pathAndSource) []pathAndSource {
518-
pathSeparator := string(os.PathSeparator)
518+
pathSeparator := `/` // this check runs in the API server, use the OS-agnostic separator
519519

520520
if needle.path == "" {
521521
return nil

0 commit comments

Comments
 (0)