Use OS-agnostic path separator in pod warnings check

This commit is contained in:
Jordan Liggitt 2024-12-17 08:36:06 -05:00
parent 3ec97a445f
commit 04426633c0
No known key found for this signature in database

View File

@ -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