mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Use OS-agnostic path separator in pod warnings check
This commit is contained in:
parent
3ec97a445f
commit
04426633c0
@ -515,7 +515,7 @@ func checkVolumeMappingForOverlap(paths []pathAndSource) []string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func checkForOverlap(haystack []pathAndSource, needle pathAndSource) []pathAndSource {
|
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 == "" {
|
if needle.path == "" {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user