Add glob support in subcommands add patch and add configmap

This commit is contained in:
Jingfang Liu
2018-08-01 15:10:46 -07:00
parent 55f8828ba1
commit bf73633cda
7 changed files with 103 additions and 30 deletions

View File

@@ -50,6 +50,11 @@ func newCmdAddConfigMap(fSys fs.FileSystem) *cobra.Command {
return err
}
err = flagsAndArgs.ExpandFileSource(fSys)
if err != nil {
return err
}
// Load the kustomization file.
mf, err := newKustomizationFile(constants.KustomizationFileName, fSys)
if err != nil {