Skip to content

feat: Support multiple ArgoCD instances with ApplicationTrackingAnnotations#1637

Merged
svghadi merged 12 commits intoargoproj-labs:masterfrom
aali309:ApplicationTrackingAnnotations
Feb 19, 2025
Merged

feat: Support multiple ArgoCD instances with ApplicationTrackingAnnotations#1637
svghadi merged 12 commits intoargoproj-labs:masterfrom
aali309:ApplicationTrackingAnnotations

Conversation

@aali309
Copy link
Copy Markdown
Contributor

@aali309 aali309 commented Jan 8, 2025

What type of PR is this?

What does this PR do / why we need it:
add ApplicationTrackingAnnotations to prevent resource conflicts between ArgoCD instances

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:
see this PR on argocd repo
Fixes #?

How to test changes / Special notes to the reviewer:

@aali309 aali309 force-pushed the ApplicationTrackingAnnotations branch from 343db05 to bd8f847 Compare January 8, 2025 22:41
Copy link
Copy Markdown
Contributor

@ishitasequeira ishitasequeira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sharing the feedback here from our chat for others to be able to advise further as well,

  • We do not want to change the name of the config map being created. ArgoCD looks for a specific configMap and if it does not find the configMap, it defaults everything to default values.
  • There is a limitation in Operator where we can have only 1 ArgoCD instance per namespace. I can see that you are creating both the ArgoCD instances in the same namespace here. Once you have them created in different namespaces, you would not need to make changes of creating a different configMap here.

@aali309 aali309 marked this pull request as ready for review January 29, 2025 19:18
Signed-off-by: Atif Ali <atali@redhat.com>

resolve diff in bundle

Signed-off-by: Atif Ali <atali@redhat.com>
Signed-off-by: Atif Ali <atali@redhat.com>
Signed-off-by: Atif Ali <atali@redhat.com>

new approach for e2e tests

Signed-off-by: Atif Ali <atali@redhat.com>

new added annotation tracking

Signed-off-by: Atif Ali <atali@redhat.com>

create apps

Signed-off-by: Atif Ali <atali@redhat.com>

linter fix

Signed-off-by: Atif Ali <atali@redhat.com>

marshals the annotations into JSON for the ConfigMap

Signed-off-by: Atif Ali <atali@redhat.com>

create apps

Signed-off-by: Atif Ali <atali@redhat.com>
Signed-off-by: Atif Ali <atali@redhat.com>
…nt.go

Signed-off-by: Atif Ali <atali@redhat.com>
Signed-off-by: Atif Ali <atali@redhat.com>
Signed-off-by: Atif Ali <atali@redhat.com>
@aali309 aali309 force-pushed the ApplicationTrackingAnnotations branch from e6cda85 to 68cd075 Compare February 1, 2025 05:22
Copy link
Copy Markdown
Collaborator

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've got two questions/comments

Comment thread controllers/argocd/configmap.go Outdated
Comment thread controllers/argocd/configmap.go Outdated
…otations

Signed-off-by: Atif Ali <atali@redhat.com>
@aali309 aali309 requested a review from jannfis February 4, 2025 14:09
…tion

Signed-off-by: Atif Ali <atali@redhat.com>
Signed-off-by: Atif Ali <atali@redhat.com>
Copy link
Copy Markdown
Collaborator

@jannfis jannfis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @iam-veeramalla or @svghadi , you might want to take a look as well.

Copy link
Copy Markdown
Collaborator

@svghadi svghadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have few questions on kuttl tests. Rest all looks good. Thanks

Comment thread tests/k8s/1-046_validate_application_tracking/03-assert.yaml
Comment thread tests/k8s/1-046_validate_application_tracking/02-label-namespaces.yaml Outdated
Comment thread tests/k8s/1-046_validate_application_tracking/01-install.yaml Outdated
Signed-off-by: Atif Ali <atali@redhat.com>
Copy link
Copy Markdown
Collaborator

@svghadi svghadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@svghadi svghadi merged commit 548f278 into argoproj-labs:master Feb 19, 2025
@aali309 aali309 deleted the ApplicationTrackingAnnotations branch March 5, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants