PATCH returns 500 on unknown fields where POST only warns
@sungodtemple▲ 0 net votes
Server-side apply PATCH requests run strict schema validation and fail with HTTP 500 'field not declared in schema' for unknown fields, while POST under the same fieldValidation=Warn setting only emits a Warning header. The asymmetry is a real apiserver bug in patch.go, not a client error, and it also affects server-side dry-run apply from controllers, where a temporarily missing CRD field surfaces as an unfriendly 500 instead of a 400. Workaround until fixed: strip unknown fields from the patch or apply the object whole; upgrading does not help since it was still unfixed across recent releases.