Cleanup addmetadata.

This commit is contained in:
Jeffrey Regan
2018-08-31 10:58:08 -07:00
parent 51a4907f89
commit 93618166b6
4 changed files with 239 additions and 97 deletions

View File

@@ -22,6 +22,7 @@ import (
"os"
"github.com/kubernetes-sigs/kustomize/pkg/fs"
"github.com/kubernetes-sigs/kustomize/pkg/validators"
"github.com/spf13/cobra"
)
@@ -109,8 +110,8 @@ func newCmdAdd(fsys fs.FileSystem) *cobra.Command {
newCmdAddPatch(fsys),
newCmdAddConfigMap(fsys),
newCmdAddBase(fsys),
newCmdAddLabel(fsys),
newCmdAddAnnotation(fsys),
newCmdAddLabel(fsys, validators.MakeLabelValidator()),
newCmdAddAnnotation(fsys, validators.MakeAnnotationValidator()),
)
return c
}