Skip to content

Argocd Version upgrade redis-ha tried to modify immutable field #3619

@tppalani

Description

@tppalani

Describe the bug

When upgrading the ArgoCD Helm chart to version 9.1.0 or higher (with the updated redis-ha dependency), the upgrade fails with an error about immutable selector labels for the argocd-redis-ha-haproxy Deployment.

Deployment.apps "argocd-redis-ha-haproxy" is invalid: spec.selector: Invalid value: v1.LabelSelector{...}: field is immutable

Related helm chart

argo-cd

Helm chart version

9.1.0 to 9.1.5

To Reproduce

  1. Deploy ArgoCD using the Helm chart with redis-ha enabled.
  2. Upgrade to chart version 9.1.0 or higher.
  3. Observe the error during the upgrade process.

Expected behavior

The upgrade should succeed without requiring manual deletion of the Deployment.

  • Helm chart version: 9.1.0 and above
  • Kubernetes version: [1.33]
  • Deployment method: [Terraform module with helm installtion]

Screenshots

No response

Additional context

Is it possible to provide a migration path or automated solution for this upgrade scenario, especially for users managing deployments via Terraform or GitOps?

The workaround is to manually delete the argocd-redis-ha-haproxy Deployment before upgrading, but deleting resources manually using kubectl is not advisable in production clusters, especially when using automated tools like Terraform or GitOps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions