Merge pull request #3821 from phanimarupaka/OverrideIsSameResourceImpl

Support multiple implementations for IsSameResource
This commit is contained in:
Kubernetes Prow Robot
2021-04-28 08:42:50 -07:00
committed by GitHub
3 changed files with 72 additions and 26 deletions

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