Skip to content
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: operator overwrites server replicas when autoscale is enabled #860

Merged
merged 5 commits into from
Mar 1, 2023

Conversation

jaideepr97
Copy link
Collaborator

@jaideepr97 jaideepr97 commented Feb 18, 2023

What type of PR is this?

Uncomment only one /kind line, and delete the rest.
For example, > /kind bug would simply become: /kind bug

/kind bug

/kind chore
/kind cleanup
/kind failing-test
/kind enhancement
/kind documentation
/kind code-refactoring

What does this PR do / why we need it:

Currently, the operator does not respect server autoscale configuration expressed in CR. The HPA controller tries to edit replica setting in server deployment, but operator overwrites it. This PR changes the logic to only reconcile on replica drift if autoscale is disabled.

Have you updated the necessary documentation?

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

Which issue(s) this PR fixes:

Fixes #?

How to test changes / Special notes to the reviewer:

  1. Deploy operator
  2. Create Argo CD instance
  3. set .spec.server.autoscale.enabled to true
  4. set required no. of replicas in .spec.server.autoscale.hpa
  5. confirm that server replicas are spun up by hpa and replicas are not subsequently killed

Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
@jaideepr97 jaideepr97 changed the title fix: update server and hpa reconciliation logic fix: operator overwrites server replicas when autoscale is enabled Mar 1, 2023
@wtam2018 wtam2018 merged commit 18e9099 into argoproj-labs:master Mar 1, 2023
ciiay pushed a commit to ciiay/argocd-operator that referenced this pull request Mar 20, 2023
…rgoproj-labs#860)

Signed-off-by: Jaideep Rao <jaideep.r97@gmail.com>
Signed-off-by: Yi Cai <yicai@redhat.com>
@jaideepr97 jaideepr97 deleted the fix-server-hpa-overwrite branch February 14, 2024 18:44
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.

None yet

2 participants