Update merge3 with deafult GVKNN matcher

This commit is contained in:
Phani Teja Marupaka
2021-04-27 23:53:54 -07:00
parent 914a82bfa4
commit 8a529ca399

View File

@@ -46,12 +46,13 @@ type Merge3Runner struct {
path bool
}
func (r *Merge3Runner) runE(c *cobra.Command, args []string) error {
func (r *Merge3Runner) runE(_ *cobra.Command, _ []string) error {
matcher := filters.DefaultGVKNNMatcher{MergeOnPath: r.path}
err := filters.Merge3{
OriginalPath: r.ancestor,
UpdatedPath: r.fromDir,
DestPath: r.toDir,
MergeOnPath: r.path,
Matcher: &matcher,
}.Merge()
if err != nil {
return err