Don't print Kustomization file in tree output

This commit is contained in:
Phani Teja Marupaka
2021-03-25 17:01:30 -07:00
parent 558995536d
commit fa96878cfc
2 changed files with 1 additions and 9 deletions

View File

@@ -75,11 +75,6 @@ type TreeRunner struct {
structure string
}
func (r *TreeRunner) getMatchFilesGlob() []string {
matchFilesGlob := append([]string{ext.KRMFileName()}, kio.DefaultMatch...)
return append(matchFilesGlob, "Kustomization")
}
func (r *TreeRunner) runE(c *cobra.Command, args []string) error {
var input kio.Reader
var root = "."
@@ -90,7 +85,7 @@ func (r *TreeRunner) runE(c *cobra.Command, args []string) error {
input = &kio.ByteReader{Reader: c.InOrStdin()}
} else {
root = filepath.Clean(args[0])
input = kio.LocalPackageReader{PackagePath: args[0], MatchFilesGlob: r.getMatchFilesGlob()}
input = kio.LocalPackageReader{PackagePath: args[0]}
}
var fields []kio.TreeWriterField