Skip to content

Commit 7fc887f

Browse files
committed
Add message and notice to app of apps
Note that this will only work on argocd-3.5 and later. It has no effect on older argo versions
1 parent 51f7caa commit 7fc887f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

internal/controller/argo.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,12 @@ return health_status`,
292292
APIVersion: "argoproj.io/v1beta1",
293293
},
294294
ObjectMeta: metav1.ObjectMeta{
295-
Name: name,
296-
Namespace: namespace,
295+
Name: name,
296+
Namespace: namespace,
297+
Annotations: map[string]string{
298+
"notice.argocd.argoproj.io/severity": "info",
299+
"notice.argocd.argoproj.io/content": "App of Apps",
300+
},
297301
Finalizers: []string{"argoproj.io/finalizer"},
298302
},
299303
Spec: argooperator.ArgoCDSpec{

0 commit comments

Comments
 (0)