Drain more code from kusttarget.

This commit is contained in:
jregan
2019-01-06 09:17:53 -08:00
parent 1b726b26cd
commit 032fffe111
9 changed files with 211 additions and 231 deletions

View File

@@ -182,8 +182,7 @@ func TestLoadCRDs(t *testing.T) {
NameReference: nbrs,
}
actualTc, err := NewFactory(makeLoader(t)).LoadCRDs(
[]string{"crd.json"})
actualTc, err := LoadConfigFromCRDs(makeLoader(t), []string{"crd.json"})
if err != nil {
t.Fatalf("unexpected error:%v", err)
}