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 the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling #1574

Merged

Conversation

ishitasequeira
Copy link
Collaborator

What type of PR is this?

/kind bug

What does this PR do / why we need it:

Currently, when spec.controller.sharding.dynamicScalingEnabled feature is enabled on argocd-controller, we do not update the environment variable ARGOCD_CONTROLLER_REPLICAS with the correct number of replicas on the argocd-application-controller statefulset.

The PR fixes the logic of setting the number of replicas correctly in the environment variable of the statefulset pods.

Have you updated the necessary documentation?

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

Which issue(s) this PR fixes:

Fixes https://issues.redhat.com/browse/GITOPS-3465

How to test changes / Special notes to the reviewer:

  • Start the operator using
ARGOCD_CLUSTER_CONFIG_NAMESPACES=argocd-e2e-cluster-config make install run
  • Execute the kuttl test using the command
kubectl kuttl test ./tests/k8s --config ./tests/kuttl-tests.yaml --test 1-032_validate_dynamic_scaling

Signed-off-by: Ishita Sequeira <[email protected]>
Copy link
Collaborator

@anandf anandf left a comment

Choose a reason for hiding this comment

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

LGTM

@anandf anandf merged commit 1f676d0 into argoproj-labs:master Oct 24, 2024
6 of 7 checks passed
ishitasequeira added a commit to ishitasequeira/argocd-operator that referenced this pull request Oct 24, 2024
…r dynamicScaling (argoproj-labs#1574)

* fix the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling

Signed-off-by: Ishita Sequeira <[email protected]>

* fix lint issues

Signed-off-by: Ishita Sequeira <[email protected]>

---------

Signed-off-by: Ishita Sequeira <[email protected]>
ishitasequeira added a commit to ishitasequeira/argocd-operator that referenced this pull request Oct 24, 2024
…r dynamicScaling (argoproj-labs#1574)

* fix the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling

Signed-off-by: Ishita Sequeira <[email protected]>

* fix lint issues

Signed-off-by: Ishita Sequeira <[email protected]>

---------

Signed-off-by: Ishita Sequeira <[email protected]>
ishitasequeira added a commit to ishitasequeira/argocd-operator that referenced this pull request Oct 24, 2024
…r dynamicScaling (argoproj-labs#1574)

* fix the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling

Signed-off-by: Ishita Sequeira <[email protected]>

* fix lint issues

Signed-off-by: Ishita Sequeira <[email protected]>

---------

Signed-off-by: Ishita Sequeira <[email protected]>
anandf pushed a commit that referenced this pull request Oct 25, 2024
…r dynamicScaling (#1574) (#1576)

* fix the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling



* fix lint issues



---------

Signed-off-by: Ishita Sequeira <[email protected]>
anandf pushed a commit that referenced this pull request Oct 25, 2024
…r dynamicScaling (#1574) (#1575)

* fix the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling



* fix lint issues



---------

Signed-off-by: Ishita Sequeira <[email protected]>
anandf pushed a commit that referenced this pull request Oct 25, 2024
…r dynamicScaling (#1574) (#1577)

* fix the setting of environment variable ARGOCD_CONTROLLER_REPLICAS for dynamicScaling



* fix lint issues



---------

Signed-off-by: Ishita Sequeira <[email protected]>
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.

2 participants