incubator-devlake-helm-chart icon indicating copy to clipboard operation
incubator-devlake-helm-chart copied to clipboard

field is immutable when upgrading

Open klemen-df opened this issue 2 years ago • 1 comments

When upgrading from 0.20.0-beta8 to 0.20.0-beta9 I get this error:

Error: 
cannot patch "devlake-ui" with kind Deployment: Deployment.apps "devlake-ui" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string
    ]string{
        "app.kubernetes.io/instance": "devlake",
        "app.kubernetes.io/name": "devlake",
        "devlakeComponent": "ui"
    }, MatchExpressions: []v1.LabelSelectorRequirement(nil)
}: field is immutable
cannot patch "devlake-lake" with kind Deployment: Deployment.apps "devlake-lake" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string
    ]string{
        "app.kubernetes.io/instance": "devlake",
        "app.kubernetes.io/name": "devlake",
        "devlakeComponent": "lake"
    }, MatchExpressions: []v1.LabelSelectorRequirement(nil)
}: field is immutable

klemen-df avatar Feb 27 '24 09:02 klemen-df

I also experienced the same thing when upgrading from 0.19.0 to 0.21.0-beta6. Updating is difficult because deployment's spec.selector.matchLables is immutable.

I store the collected data in aws rds. So, after deleting deployment devlake-ui and devlake-lake, I upgraded to helm.

EleSangwon avatar Mar 04 '24 06:03 EleSangwon