Files
argo-cd/gitops-engine/pkg/sync/ignore/ignore.go
2026-02-12 09:29:40 -05:00

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
}