From 660b67be5eb648c99b2ac8e07c38f3292e8bea97 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton Date: Fri, 29 Aug 2025 17:25:39 +0200 Subject: [PATCH] api/types: update deprecation notice on NetworkSettingsBase container.NetworkSettingsBase is deprecated in v28.4, and scheduled for removal in v29. However, it contains three fields that aren't deprecated and that will be moved to NetworkSettings. Update the deprecation notice on NetworkSettingsBase to advise users to access NetworkSettingsBase's fields through NetworkSettings. Signed-off-by: Albin Kerouanton --- api/types/types_deprecated.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/types/types_deprecated.go b/api/types/types_deprecated.go index 40b24f856b..c9c20b8736 100644 --- a/api/types/types_deprecated.go +++ b/api/types/types_deprecated.go @@ -46,7 +46,8 @@ type NetworkSettings = container.NetworkSettings // NetworkSettingsBase holds networking state for a container when inspecting it. // -// Deprecated: use [container.NetworkSettingsBase]. +// Deprecated: [container.NetworkSettingsBase] will be removed in v29. Prefer +// accessing the fields it contains through [container.NetworkSettings]. type NetworkSettingsBase = container.NetworkSettingsBase //nolint:staticcheck // ignore SA1019: NetworkSettingsBase is deprecated in v28.4. // DefaultNetworkSettings holds network information