Skip to content

redis-ha upgrade tries to modify immutable field #3571

@jmmclean

Description

@jmmclean

Describe the bug

The change from DandyDeveloper/charts#342 creates an issue where an immutable field is attempting to be changed:

Failed to compare desired state to live state: failed to calculate diff: error calculating server side diff: serverSideDiff error: error running server side apply in dryrun mode for resource Deployment/argocd-redis-ha-haproxy: Deployment.apps "argocd-redis-ha-haproxy" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:v1.LabelSelectorRequirement(nil)}: field is immutable

Normally, I would expect argocd to rollout what it can then do a replace on the CR having this issue, but with SSA it goes into an unknown state so there is not a great way to reconcile this without doing heavy manual intervention.

Related helm chart

argo-cd

Helm chart version

9.1.0

To Reproduce

  1. deploy v8.3.5 of argocd helm chart
  2. deploy v 9.1.0 of argocd helm chart

Expected behavior

ArgoCD should rollout changes as expected, however it cannot because the redis-ha chart changed matchLabels selector, which is an immutable field.

Screenshots

Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    argo-cdbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions