Skip to content

Manually setting ARGOCD_CONTROLLER_REPLICAS fails helm chart #3732

@ruben-janssens

Description

@ruben-janssens

Describe the bug

When manually setting the replicas in the environment variable ARGOCD_CONTROLLER_REPLICAS the sync using argo cd fails with the following error:

one or more objects failed to apply, reason: failed to create typed patch object (devops/argo-cd-argocd-application-controller; apps/v1, Kind=StatefulSet): .spec.template.spec.containers[name="application-controller"].env: duplicate entries for key [name="ARGOCD_CONTROLLER_REPLICAS"]

Related helm chart

argo-cd

Helm chart version

9.4.2

To Reproduce

  1. Install agocd helm chart
  2. Let argocd manage itself using an Application
  3. Scale the application controller to 2 or more instances by setting replicas to 2 and the environment variable ARGOCD_CONTROLLER_REPLICAS to 2

Expected behavior

ARGOCD_CONTROLLER_REPLICAS is set in the values and deploys successfully.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions