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

error server-side applying resource "...": failed to create typed patch object "...": ... #6032

Open
ilya-lesikov opened this issue Apr 2, 2024 · 0 comments

Comments

@ilya-lesikov
Copy link
Member

ilya-lesikov commented Apr 2, 2024

Version

1.2.296+

Issue

werf converge suddenly starts producing errors like this:

Error: failed release "myapp-prod" (namespace: "myapp-prod"): error executing deploy plan: error waiting for operations completion: error executing operation: error applying resource: error server-side applying resource "PersistentVolume/mypv": failed to create typed patch object (/mypv; /v1, Kind=PersistentVolume): .spec.readOnly: field not declared in schema

Reason

New deployment engine (Nelm), activated by default since v1.2.296, has stricter validation for chart resources because of the removal of 3-Way Merge in favor of Server-Side Apply. Server-Side Apply enforces stricter resource validation by default.

Mitigation

These errors indicate mistakes made in resource manifests in your chart, e.g. unsupported or misconfigured fields. Fixing the mistakes in your chart manifests is the correct solution. Alternatively, you can temporarily revert back to the old engine by export WERF_NELM=0.

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