-
Notifications
You must be signed in to change notification settings - Fork 245
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
[Regression] Chart 2.27.1 Deployment Label Selectors cause "field is immutable" error on deployment. #655
Comments
Same here
|
As a temporary solution, it helped me to completely remove the deployment dashboard and install it again |
@hjannasch This is due to #628 changing the selector labels. The values are considered immutable and the upgrades are probably in need of a Frustratingly, this was fixing a "bug" but also introduced this regression. |
I've updated the title for others coming into here. @peterzhuamazon Do you have a suggestion here? Technically, reverting would "solve" the issue but the chart is technically bugged without these fixes. |
Describe the bug
Helm Upgrade command fails due to new deployment labels.
UPGRADE FAILED: cannot patch \"opensearch-dashboards\" with kind Deployment: Deployment.apps \"opensearch-dashboards\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app.kubernetes.io/instance\":\"opensearch-dashboards\", \"app.kubernetes.io/name\":\"opensearch-dashboards\"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable\n"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Helm Upgrade should work
Chart Name
opensearch-dashboards-2.27.1
The text was updated successfully, but these errors were encountered: