Make more high level build methods public.

This commit is contained in:
monopole
2021-02-12 10:53:22 -08:00
parent 66b7c5968b
commit b553997447
12 changed files with 152 additions and 130 deletions

View File

@@ -93,7 +93,7 @@ func (th Harness) MakeOptionsPluginsEnabled() krusty.Options {
// Run, failing on error.
func (th Harness) Run(path string, o krusty.Options) resmap.ResMap {
m, err := krusty.MakeKustomizer(th.fSys, &o).Run(path)
m, err := krusty.MakeKustomizer(&o).Run(th.fSys, path)
if err != nil {
th.t.Fatal(err)
}
@@ -102,7 +102,7 @@ func (th Harness) Run(path string, o krusty.Options) resmap.ResMap {
// Run, failing if there is no error.
func (th Harness) RunWithErr(path string, o krusty.Options) error {
_, err := krusty.MakeKustomizer(th.fSys, &o).Run(path)
_, err := krusty.MakeKustomizer(&o).Run(th.fSys, path)
if err == nil {
th.t.Fatalf("expected error")
}