Closed blampe closed 3 months ago
Looking good! No breaking changes found. No new resources/functions.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 36.65%. Comparing base (
3d211b9
) to head (a092c68
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR has been shipped in release v4.14.0.
This fixes our behavior to match upstream's when merging empty lists. We now produce an empty list instead of a no-op.
The bug was due to this logic which initialized a slice as
nil
. This was then passed tomergo.Merge
which ignores zero values by default, hence why the original value was not overridden.This PR changes our
allowNullValues
logic to use upstream's merge behavior more directly since the intention behind that flag is to match upstream as closely as possible.Importantly, this doesn't fix https://github.com/pulumi/pulumi-kubernetes/issues/2034 because we're still unmarshaling inputs with
SkipNulls: true
. In practiceallowNullValues
behaves more likeallowEmptyValues
because our unmarshaling strips away all of the meaningfulnil
values. That fix will be in another PR.Fixes https://github.com/pulumi/pulumi-kubernetes/issues/2731. Refs https://github.com/pulumi/pulumi-kubernetes/issues/2034. Refs https://github.com/pulumi/pulumi-kubernetes/pull/2963.