Files
cozystack/pkg/reservation
Mattia Eleuteri a069636a4e fix(api): read a null value as absent in a reservation declaration
Helm deletes a key its values set to null, so a chart treats
`resources: {cpu: null}` as if cpu were not set. The evaluator's
defaulting replaced a null only where the schema had a default to put
in its place, so elsewhere the key stayed present: has() reported it,
and an expression reading it failed, for instance with "no such
overload: matches", on a spec the chart renders.

Nulls are dropped after defaulting, so a schema default still fills a
nulled key the way it fills an absent one.

Tested with a nulled key that has no default.

Fixes: 89aba6e104 ("feat(api): add the reservation evaluator for tenant quotas")
Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
2026-11-23 08:03:49 +01:00
..