Skip to content

Commit b8907a3

Browse files
committed
Fix embed path separator on windows
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent 8293db5 commit b8907a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/crds/crds.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package crds
33
import (
44
"embed"
55
"fmt"
6-
"path/filepath"
6+
"path"
77

88
"github.com/rancher/wrangler/v3/pkg/yaml"
99
apiextv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
@@ -44,7 +44,7 @@ func crdsFromDir(dirName string) (map[string]*apiextv1.CustomResourceDefinition,
4444

4545
allCRDs := map[string]*apiextv1.CustomResourceDefinition{}
4646
for _, dirEntry := range crdFiles {
47-
fullPath := filepath.Join(dirName, dirEntry.Name())
47+
fullPath := path.Join(dirName, dirEntry.Name())
4848
if dirEntry.IsDir() {
4949
// if the entry is the dir recurse into that folder to get all crds
5050
subCRDs, err := crdsFromDir(fullPath)

0 commit comments

Comments
 (0)