mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 01:39:06 +00:00
Consolidate transformer config creation to factory.
This commit is contained in:
@@ -177,7 +177,8 @@ func TestRegisterCRD(t *testing.T) {
|
||||
NameReference: refpathconfigs,
|
||||
}
|
||||
|
||||
pathconfig, _ := registerCRD(makeLoader(t), "/testpath/crd.json")
|
||||
pathconfig, _ := RegisterCRDs(
|
||||
transformerconfig.NewFactory(makeLoader(t)), []string{"/testpath/crd.json"})
|
||||
|
||||
if !reflect.DeepEqual(pathconfig, expected) {
|
||||
t.Fatalf("expected\n %v\n but got\n %v\n", expected, pathconfig)
|
||||
|
||||
Reference in New Issue
Block a user