mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 09:24:23 +00:00
remove decoder interface since it is only used inside k8sdeps
This commit is contained in:
@@ -65,7 +65,7 @@ func NewCmdBuild(
|
||||
out io.Writer, fs fs.FileSystem,
|
||||
kf ifc.KunstructuredFactory,
|
||||
ptf patch.TransformerFactory,
|
||||
decoder ifc.Decoder, hash ifc.Hash) *cobra.Command {
|
||||
hash ifc.Hash) *cobra.Command {
|
||||
var o buildOptions
|
||||
var p string
|
||||
|
||||
@@ -79,7 +79,7 @@ func NewCmdBuild(
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return o.RunBuild(out, fs, kf, ptf, decoder, hash)
|
||||
return o.RunBuild(out, fs, kf, ptf, hash)
|
||||
},
|
||||
}
|
||||
cmd.Flags().StringVarP(
|
||||
@@ -126,7 +126,7 @@ func (o *buildOptions) RunBuild(
|
||||
out io.Writer, fSys fs.FileSystem,
|
||||
kf ifc.KunstructuredFactory,
|
||||
ptf patch.TransformerFactory,
|
||||
decoder ifc.Decoder, hash ifc.Hash) error {
|
||||
hash ifc.Hash) error {
|
||||
rootLoader, err := loader.NewLoader(o.kustomizationPath, "", fSys)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -137,7 +137,7 @@ func (o *buildOptions) RunBuild(
|
||||
resmap.NewFactory(resource.NewFactory(kf)),
|
||||
ptf,
|
||||
makeTransformerconfig(fSys, o.transformerconfigPaths),
|
||||
decoder, hash)
|
||||
hash)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user