-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Ensure ConfigMap and StatefulSet updates are applied during operator upgrades #1619
Conversation
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
Signed-off-by: Mangaal <[email protected]>
Can we add a unit test to check configmap reconciliation? Create the cm resource using |
Signed-off-by: Mangaal <[email protected]>
…nto fix-upgrade-sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small nit, everything else looks great! Awesome job on the unit tests. Thanks!
Signed-off-by: Mangaal <[email protected]>
…nto fix-upgrade-sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Sorry nitpicking again. Your previous comments made sense in 2 places. Can you revert the changes for this. Also please rebase, I have just merged a PR which will fix failing extra-cmd e2e test.
…nto fix-upgrade-sync
Signed-off-by: Mangaal <[email protected]>
is a known flaky failure. Ignoring it and merging the PR. |
/cherry-pick release-0.13 |
Cherry-pick failed with |
What type of PR is this?
This PR fixes an issue where updates to the argocd-redis-ha-configmap, argocd-redis-ha-health-configmap, and the StatefulSet argocd-redis-ha-server were not being reflected during OpenShift GitOps operator upgrades.
The current code missed checking for changes in:
As a result, changes introduced in higher versions of the operator were not applied unless the config maps and StatefulSet were manually deleted or the .spec.ha.enabled field was toggled in the ArgoCD Custom Resource (CR). This PR ensures these changes are correctly detected and applied.
This PR:
Adds logic to check for changes in the argocd-redis-ha-configmap and argocd-redis-ha-health-configmap data fields during operator upgrades.
Includes validation for the env variables in the argocd-redis-ha-server StatefulSet to ensure updates are reflected.
Ensures that any required updates are applied automatically without manual intervention.
/kind bug
Steps to reproduce the issue: