Rename the prefix/suffix transformer.

This commit is contained in:
jregan
2019-06-11 17:47:23 -07:00
parent fa23026b80
commit 49d94f5318
6 changed files with 21 additions and 46 deletions

View File

@@ -29,7 +29,7 @@ func (p *NameTransformerPlugin) Config(
}
func (p *NameTransformerPlugin) Transform(m resmap.ResMap) error {
t, err := transformers.NewNamePrefixSuffixTransformer(
t, err := transformers.NewPrefixSuffixTransformer(
p.Prefix,
p.Suffix,
p.FieldSpecs,

View File

@@ -12,7 +12,7 @@ import (
"sigs.k8s.io/yaml"
)
// Add the given prefix and suffix to the resource name.
// Add the given prefix and suffix to the field.
type plugin struct {
Prefix string `json:"prefix,omitempty" yaml:"prefix,omitempty"`
Suffix string `json:"suffix,omitempty" yaml:"suffix,omitempty"`
@@ -30,7 +30,7 @@ func (p *plugin) Config(
}
func (p *plugin) Transform(m resmap.ResMap) error {
t, err := transformers.NewNamePrefixSuffixTransformer(
t, err := transformers.NewPrefixSuffixTransformer(
p.Prefix,
p.Suffix,
p.FieldSpecs,