Skip to content

field is immutable when upgrading #257

Open

Description

@klemen-df

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

Activity

  1. EleSangwon commented on Mar 4, 2024

    @EleSangwon
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions