From 04426633c0b325407fbd7df27dbb4834237fb943 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 17 Dec 2024 08:36:06 -0500 Subject: [PATCH] Use OS-agnostic path separator in pod warnings check --- pkg/api/pod/warnings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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