This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
error server-side applying resource "...": failed to create typed patch object "...": ... #6032
Labels
You can continue the conversation there. Go to discussion →
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
.The text was updated successfully, but these errors were encountered: