Files
argo-cd/gitops-engine/pkg/sync/hook/helm/hook.go
Leonardo Luz Almeida bcc0243f1e prepare repo for migration to ArgoCD repo
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
2025-09-23 10:05:42 -04:00

10 lines
292 B
Go

package helm
import "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
func IsHook(obj *unstructured.Unstructured) bool {
value, ok := obj.GetAnnotations()["helm.sh/hook"]
// Helm use the same annotation to identify CRD as hooks, but they are not.
return ok && value != "crd-install"
}