mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
13 lines
283 B
Go
13 lines
283 B
Go
package ignore
|
|
|
|
import (
|
|
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
|
|
|
"github.com/argoproj/argo-cd/gitops-engine/pkg/sync/hook"
|
|
)
|
|
|
|
// should we Ignore this resource?
|
|
func Ignore(obj *unstructured.Unstructured) bool {
|
|
return hook.IsHook(obj) && len(hook.Types(obj)) == 0
|
|
}
|