- Add nameKeyedFields allowlist (env, containers, initContainers,
ephemeralContainers, volumes, imagePullSecrets) so deduplicateListMaps
only touches list fields that are actually keyed by "name" under
server-side apply merge semantics; volumeMounts and other lists that
incidentally contain a "name" field are no longer collapsed
- processNamedList now skips deduplication when any item's "name" is a
missing or empty string, preventing unrelated entries from being
treated as duplicates
- Add regression tests: volumeMounts with duplicate names preserved,
env list with empty name not deduplicated
Addresses Copilot review comments on PR #32061.
Signed-off-by: Kunal Jain <qlapon@gmail.com>