Start pluglib, a set of public, plugin specific functions.

This commit is contained in:
Jeffrey Regan
2019-10-14 17:52:40 -07:00
committed by jregan
parent 2fadb4dd59
commit 41a008e9a3
78 changed files with 280 additions and 329 deletions

View File

@@ -7,7 +7,6 @@ import (
"bytes"
"text/template"
"sigs.k8s.io/kustomize/v3/pkg/ifc"
"sigs.k8s.io/kustomize/v3/pkg/resmap"
"sigs.k8s.io/kustomize/v3/pkg/types"
"sigs.k8s.io/yaml"
@@ -39,9 +38,8 @@ spec:
app: dev
`
func (p *plugin) Config(
_ ifc.Loader, rf *resmap.Factory, config []byte) error {
p.rf = rf
func (p *plugin) Config(h *resmap.PluginHelpers, config []byte) error {
p.rf = h.ResmapFactory()
return yaml.Unmarshal(config, p)
}