Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should remove app.kubernetes.io/version label from label selectors #1694

Closed
anggao opened this issue Mar 23, 2021 · 1 comment · Fixed by #1696
Closed

Should remove app.kubernetes.io/version label from label selectors #1694

anggao opened this issue Mar 23, 2021 · 1 comment · Fixed by #1696
Labels
bug Something isn't working

Comments

@anggao
Copy link
Contributor

anggao commented Mar 23, 2021

Report

When upgrade from KEDA v2.0.0 to v2.2.0, we encountered the following issue

Deployment.apps "keda-operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"keda-operator", "app.kubernetes.io/part-of":"keda-operator", "app.kubernetes.io/version":"2.2.0"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

Expected Behavior

We should be able to upgrade KEDA without any issue

Actual Behavior

Deployment.apps "keda-operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"keda-operator", "app.kubernetes.io/part-of":"keda-operator", "app.kubernetes.io/version":"2.2.0"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

Steps to Reproduce the Problem

  1. Install KEDA by https://github.com/kedacore/keda/releases/download/v2.0.0/keda-2.0.0.yaml
  2. upgrade KEDA with https://github.com/kedacore/keda/releases/download/v2.2.0/keda-2.2.0.yaml

Logs from KEDA operator

example

KEDA Version

2.1.0

Kubernetes Version

1.18

Platform

Any

Scaler Details

No response

@anggao anggao added the bug Something isn't working label Mar 23, 2021
@zroubalik
Copy link
Member

Relevant kustomize issue: kubernetes-sigs/kustomize#1009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants