diff --git a/internal/controller/argo.go b/internal/controller/argo.go index 738e02172..46847328c 100644 --- a/internal/controller/argo.go +++ b/internal/controller/argo.go @@ -344,12 +344,8 @@ return health_status`, APIVersion: ArgoCDAPIVersion, }, ObjectMeta: metav1.ObjectMeta{ - Name: name, - Namespace: namespace, - Annotations: map[string]string{ - "notice.argocd.argoproj.io/severity": "info", - "notice.argocd.argoproj.io/content": "App of Apps", - }, + Name: name, + Namespace: namespace, Finalizers: []string{"argoproj.io/finalizer"}, }, Spec: argooperator.ArgoCDSpec{ @@ -1039,6 +1035,10 @@ func newArgoOperatorApplication(p *api.Pattern, spec *argoapi.ApplicationSpec) * Name: applicationName(p), Namespace: getClusterWideArgoNamespace(), Labels: labels, + Annotations: map[string]string{ + "notice.argocd.argoproj.io/severity": "info", + "notice.argocd.argoproj.io/content": "App of Apps", + }, }, Spec: *spec, } diff --git a/internal/controller/argo_test.go b/internal/controller/argo_test.go index 57055072c..8a18131f1 100644 --- a/internal/controller/argo_test.go +++ b/internal/controller/argo_test.go @@ -118,6 +118,10 @@ var _ = Describe("Argo Pattern", func() { Labels: map[string]string{ "validatedpatterns.io/pattern": pattern.Name, }, + Annotations: map[string]string{ + "notice.argocd.argoproj.io/severity": "info", + "notice.argocd.argoproj.io/content": "App of Apps", + }, }, Spec: argoapi.ApplicationSpec{ Source: appSource,