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

upgrade helm release for cloneset, ERROR: failed to install app xxxx. Error: UPGRADE FAILED #1880

Open
moluzhui opened this issue Jan 14, 2025 · 1 comment

Comments

@moluzhui
Copy link

I tried to update the new service chart, which modified volumes and volumeMounts, and when I updated it through rancher, I got the following error:

failed to install app xxx. Error: UPGRADE FAILED: admission webhook "vcloneset.kb.io" denied the request: spec: Forbidden: updates to cloneset spec for fields other than 'replicas', 'template', 'lifecycle', 'scaleStrategy', 'updateStrategy', 'minReadySeconds' and 'revisionHistoryLimit' are forbidden

The above error indicates that only the specified configuration can be updated. However, I did not report the above error when updating through rancher in the test environment or helm upgrade locally.

What is the cause of this difference and whether I can fix it and implement rolling update release. This is because online services cannot be recreated violently. Looking forward to your reply

PS:
The difference between an online environment and a test environment is that there is only one copy of a test environment and several copies of an online environment

@moluzhui
Copy link
Author

This occurred in the earlier version, when I locally reproduced the 0.7.0 version of the error, but after upgrading to version 1.5 to perform the same operation without error, this is to optimize the update rejection condition, so that I can update volumes and volumeMounts

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

1 participant