mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Update merge3 with deafult GVKNN matcher
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user