Merge pull request #129252 from liggitt/path-warnings

Use OS-agnostic path separator in pod warnings check
This commit is contained in:
Kubernetes Prow Robot 2024-12-17 16:14:52 +01:00 committed by GitHub
commit 3fb2a38cd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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