mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 05:25:14 +09:00
With no decoder injected, the webhook decodes the admitted object with encoding/json, which turns every number into float64, so an int64 above 2^53 comes back rounded. jsonpatch up to v2.4 compared both sides as float64 and hid this; from v2.5 it compares json.Number, and the webhook would emit a replace that silently rewrites such a field. Decode with apimachinery's json, which keeps integers as int64, and pin that the patch touches only the lineage labels and scheduling. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>