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

Invalid value: field is immutable #865

Closed
govind-bt opened this issue May 12, 2022 · 3 comments
Closed

Invalid value: field is immutable #865

govind-bt opened this issue May 12, 2022 · 3 comments

Comments

@govind-bt
Copy link

Hi Team,

Seeing below error while applying v0.50.0 . Currently have v0.36.0 running and while trying to upgrade to v0.50.0, ran into the error

https://github.com/open-telemetry/opentelemetry-operator/releases/download/v0.50.0/opentelemetry-operator.yaml

The Deployment "opentelemetry-operator-controller-manager" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/name":"opentelemetry-operator", "control-plane":"controller-manager"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
 kubectl apply -f opentelemetry-operator_v0.50.0.yaml
 namespace/opentelemetry-operator-system unchanged
customresourcedefinition.apiextensions.k8s.io/instrumentations.opentelemetry.io configured
customresourcedefinition.apiextensions.k8s.io/opentelemetrycollectors.opentelemetry.io configured
serviceaccount/opentelemetry-operator-controller-manager unchanged
role.rbac.authorization.k8s.io/opentelemetry-operator-leader-election-role unchanged
clusterrole.rbac.authorization.k8s.io/opentelemetry-operator-manager-role configured
clusterrole.rbac.authorization.k8s.io/opentelemetry-operator-metrics-reader unchanged
clusterrole.rbac.authorization.k8s.io/opentelemetry-operator-proxy-role unchanged
rolebinding.rbac.authorization.k8s.io/opentelemetry-operator-leader-election-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/opentelemetry-operator-manager-rolebinding unchanged
clusterrolebinding.rbac.authorization.k8s.io/opentelemetry-operator-proxy-rolebinding unchanged
service/opentelemetry-operator-controller-manager-metrics-service unchanged
service/opentelemetry-operator-webhook-service unchanged
certificate.cert-manager.io/opentelemetry-operator-serving-cert unchanged
issuer.cert-manager.io/opentelemetry-operator-selfsigned-issuer unchanged
mutatingwebhookconfiguration.admissionregistration.k8s.io/opentelemetry-operator-mutating-webhook-configuration configured
validatingwebhookconfiguration.admissionregistration.k8s.io/opentelemetry-operator-validating-webhook-configuration configured
The Deployment "opentelemetry-operator-controller-manager" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/name":"opentelemetry-operator", "control-plane":"controller-manager"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

kubernetes version: 1.19
cert manager: 1.6.1

Can someone please assist on this issues? Let me know if any details required. Thanks

@DWonMtl
Copy link
Contributor

DWonMtl commented May 17, 2022

looks like a duplicate of this one #840

@DWonMtl
Copy link
Contributor

DWonMtl commented May 17, 2022

an MR is still pending #849

@pavolloffay
Copy link
Member

Done in #849

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants