-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
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
- Deploy ArgoCD using the Helm chart with
redis-haenabled. - Upgrade to chart version 9.1.0 or higher.
- 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.