mirror of https://github.com/k3s-io/k3s
24 lines
569 B
Go
24 lines
569 B
Go
// Copyright 2020 The Kubernetes Authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package conflict
|
|
|
|
import (
|
|
"sigs.k8s.io/kustomize/api/resid"
|
|
"sigs.k8s.io/kustomize/api/resource"
|
|
)
|
|
|
|
type cdFactory struct{}
|
|
|
|
var _ resource.ConflictDetectorFactory = &cdFactory{}
|
|
|
|
// NewFactory returns a new conflict detector factory.
|
|
func NewFactory() resource.ConflictDetectorFactory {
|
|
return &cdFactory{}
|
|
}
|
|
|
|
// New returns an instance of smPatchMergeOnlyDetector.
|
|
func (c cdFactory) New(_ resid.Gvk) (resource.ConflictDetector, error) {
|
|
return &smPatchMergeOnlyDetector{}, nil
|
|
}
|