Files
2025-09-23 10:05:42 -04:00

13 lines
275 B
Go

package ignore
import (
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"github.com/argoproj/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
}