split k8sdeps package into sub packages

This commit is contained in:
Jingfang Liu
2018-10-11 11:28:08 -07:00
parent 9106cee216
commit d33d154e14
19 changed files with 37 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ import (
"testing"
"github.com/ghodss/yaml"
"sigs.k8s.io/kustomize/internal/k8sdeps"
"sigs.k8s.io/kustomize/internal/k8sdeps/kunstruct"
"sigs.k8s.io/kustomize/internal/k8sdeps/transformer"
"sigs.k8s.io/kustomize/pkg/commands/kustfile"
"sigs.k8s.io/kustomize/pkg/constants"
@@ -131,7 +131,7 @@ func runBuildTestCase(t *testing.T, testcaseName string, updateKustomizeExpected
buf := bytes.NewBuffer([]byte{})
err = ops.RunBuild(
buf, fSys,
k8sdeps.NewKunstructuredFactoryImpl(),
kunstruct.NewKunstructuredFactoryImpl(),
transformer.NewFactoryImpl())
switch {
case err != nil && len(testcase.ExpectedError) == 0: