Skip to content

Conversation

@alkakumari016
Copy link
Contributor

What does this PR do / why we need it:
This PR adds reconcile logic for operator owned labels of ConfigMaps. The labels are reconciled to it's desired values whenever their is any change and ignores the labels that are not owned by the operator

Have you updated the necessary documentation?

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

Which issue(s) this PR fixes:
https://issues.redhat.com/browse/GITOPS-6285

Fixes #?

How to test changes / Special notes to the reviewer:

@alkakumari016 alkakumari016 force-pushed the GITOPS-6285 branch 2 times, most recently from 4c377ec to 21f325f Compare May 29, 2025 08:34
Copy link
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.

Thanks @alkakumari016. Left some suggestions.

Let's remove the addKubernetesData function and replace its references with your new function. I'm also thinking of limiting the changes to only those places where we're already updating labels and annotations, to keep the testing scope small.
We can introduce label/annotation checks on resources that don’t currently have them in a separate PR.

@alkakumari016 alkakumari016 force-pushed the GITOPS-6285 branch 3 times, most recently from 607395d to daea48c Compare June 23, 2025 09:27
Copy link
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 @alkakumari016

@svghadi svghadi merged commit 4ef7a80 into argoproj-labs:master Jul 26, 2025
7 checks passed
alkakumari016 added a commit to alkakumari016/argocd-operator that referenced this pull request Aug 11, 2025
…rator labels (argoproj-labs#1737)

* GITOPS-6285: reconcile operator owned labels for configMap and ignore non operator labels

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: added reconcilialtion logic for labels

Signed-off-by: Alka Kumari <[email protected]>

* Removed a typo that resulted in test case failures

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: error handling for r.Client.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: use r.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed func name to UpdateMapValues and added test cases

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

Signed-off-by: Alka Kumari <[email protected]>

GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

* GITOPS-6285: removed labels update logic from applicationset and statefulset

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed comments

Signed-off-by: Alka Kumari <[email protected]>

---------

Signed-off-by: Alka Kumari <[email protected]>
alkakumari016 added a commit to alkakumari016/argocd-operator that referenced this pull request Sep 2, 2025
…rator labels (argoproj-labs#1737)

* GITOPS-6285: reconcile operator owned labels for configMap and ignore non operator labels

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: added reconcilialtion logic for labels

Signed-off-by: Alka Kumari <[email protected]>

* Removed a typo that resulted in test case failures

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: error handling for r.Client.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: use r.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed func name to UpdateMapValues and added test cases

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

Signed-off-by: Alka Kumari <[email protected]>

GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

* GITOPS-6285: removed labels update logic from applicationset and statefulset

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed comments

Signed-off-by: Alka Kumari <[email protected]>

---------

Signed-off-by: Alka Kumari <[email protected]>
alkakumari016 added a commit to alkakumari016/argocd-operator that referenced this pull request Sep 17, 2025
…rator labels (argoproj-labs#1737)

* GITOPS-6285: reconcile operator owned labels for configMap and ignore non operator labels

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: added reconcilialtion logic for labels

Signed-off-by: Alka Kumari <[email protected]>

* Removed a typo that resulted in test case failures

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: error handling for r.Client.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: use r.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed func name to UpdateMapValues and added test cases

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

Signed-off-by: Alka Kumari <[email protected]>

GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

* GITOPS-6285: removed labels update logic from applicationset and statefulset

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed comments

Signed-off-by: Alka Kumari <[email protected]>

---------

Signed-off-by: Alka Kumari <[email protected]>
alkakumari016 added a commit to alkakumari016/argocd-operator that referenced this pull request Nov 7, 2025
…rator labels (argoproj-labs#1737)

* GITOPS-6285: reconcile operator owned labels for configMap and ignore non operator labels

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: added reconcilialtion logic for labels

Signed-off-by: Alka Kumari <[email protected]>

* Removed a typo that resulted in test case failures

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: error handling for r.Client.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: use r.Update

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed func name to UpdateMapValues and added test cases

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

Signed-off-by: Alka Kumari <[email protected]>

GITOPS-6285: removed addKubernetesData and replaced the references with UpdateMapValues

* GITOPS-6285: removed labels update logic from applicationset and statefulset

Signed-off-by: Alka Kumari <[email protected]>

* GITOPS-6285: changed comments

Signed-off-by: Alka Kumari <[email protected]>

---------

Signed-off-by: Alka Kumari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants