mirror of
https://github.com/containerd/containerd.git
synced 2026-08-09 17:39:22 +00:00
When migrating v3 [grpc] config to the v4 server plugin config, only emit fields that were actually set in the legacy config. This prevents a sparse imported [grpc] section, such as one only setting max_send_message_size, from generating address = "" and overwriting the address migrated from the root config. Add table-driven coverage for sparse legacy grpc imports, including address preservation, imported address override, and default address retention when no imported config specifies address. Signed-off-by: Wei Fu <fuweid89@gmail.com>