Skip to content

Unable to patch/update Keda http addons from 0.7.0 to v0.9.0 #769

@jaipreetnagpal

Description

@jaipreetnagpal

Greetings Team !

Getting the following issue while trying to update the helm chart for Keda http addons from 0.7.0 to v0.9.0 :
Upgrade failed: cannot patch "keda-add-ons-http-interceptor" with kind
│ Deployment: Deployment.apps "keda-add-ons-http-interceptor" is invalid:
│ spec.selector: Invalid value:
│ v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"interceptor",
│ "app.kubernetes.io/instance":"keda-add-ons-http",
│ "app.kubernetes.io/managed-by":"Helm",
│ "app.kubernetes.io/part-of":"keda-add-ons-http"},
│ MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable &&
│ cannot patch "keda-add-ons-http-controller-manager" with kind Deployment:
│ Deployment.apps "keda-add-ons-http-controller-manager" is invalid:
│ spec.selector: Invalid value:
│ v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"operator",
│ "app.kubernetes.io/instance":"keda-add-ons-http",
│ "app.kubernetes.io/managed-by":"Helm",
│ "app.kubernetes.io/part-of":"keda-add-ons-http"},
│ MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable &&
│ cannot patch "keda-add-ons-http-external-scaler" with kind Deployment:
│ Deployment.apps "keda-add-ons-http-external-scaler" is invalid:
│ spec.selector: Invalid value:
│ v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"scaler",
│ "app.kubernetes.io/instance":"keda-add-ons-http",
│ "app.kubernetes.io/managed-by":"Helm",
│ "app.kubernetes.io/part-of":"keda-add-ons-http"},
│ MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

Can you help out with the issue above, I am able to figure out thats its trying to edit the spec label selector requirements which is immutable in nature

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