mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 22:13:18 +09:00
A schema default cannot fill arbitrary map entries or replacement array
items. Keep those nulls, nullable fields and required fields without a
non-null default unchanged so Helm retains their validation semantics.
Validate the normalized copy on both write paths so admission sees the
values that reach storage without mutating the caller object.
Assisted-By: LLM
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
(cherry picked from commit 0474613482)
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>