@@ -32,20 +32,25 @@ func TestDependenciesForKustomization(t *testing.T) {
32
32
}{
33
33
{
34
34
description : "resources" ,
35
- yaml : `resources: [pod1.yaml, pod2.yaml]` ,
36
- expected : []string {"kustomization.yaml" , "pod1.yaml" , "pod2.yaml" },
35
+ yaml : `resources: [pod1.yaml, path/ pod2.yaml]` ,
36
+ expected : []string {"kustomization.yaml" , "pod1.yaml" , "path/ pod2.yaml" },
37
37
},
38
38
{
39
39
description : "paches" ,
40
- yaml : `patches: [patch1.yaml, patch2.yaml]` ,
41
- expected : []string {"kustomization.yaml" , "patch1.yaml" , "patch2.yaml" },
40
+ yaml : `patches: [patch1.yaml, path/patch2.yaml]` ,
41
+ expected : []string {"kustomization.yaml" , "patch1.yaml" , "path/patch2.yaml" },
42
+ },
43
+ {
44
+ description : "crds" ,
45
+ yaml : `patches: [crd1.yaml, path/crd2.yaml]` ,
46
+ expected : []string {"kustomization.yaml" , "crd1.yaml" , "path/crd2.yaml" },
42
47
},
43
48
{
44
49
description : "patches json 6902" ,
45
50
yaml : `patchesJson6902:
46
51
- path: patch1.json
47
- - path: patch2.json` ,
48
- expected : []string {"kustomization.yaml" , "patch1.json" , "patch2.json" },
52
+ - path: path/ patch2.json` ,
53
+ expected : []string {"kustomization.yaml" , "patch1.json" , "path/ patch2.json" },
49
54
},
50
55
}
51
56
0 commit comments