From 11a18d3b00152286b84179220c448c092e69b989 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 10 Jul 2025 23:47:43 +0200 Subject: [PATCH] api/types/registry: remove deprecated fields for non-distributable artifacts These fields were deprecated in 1932091e21b64abc52b42320393b0ac5f6921668, which is part of v28. They were kept in place for responses in older API versions, but no longer used since 7d9c50db2bed62b966347eb926f4c2bd4eb151c3, which implemented a fallback without requiring the fields to be present. This patch: - removes `ServiceConfig.AllowNondistributableArtifactsCIDRs` - removes `ServiceConfig.AllowNondistributableArtifactsHostnames` Signed-off-by: Sebastiaan van Stijn --- api/types/registry/registry.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/types/registry/registry.go b/api/types/registry/registry.go index 9319c964cd..bcbee4ec82 100644 --- a/api/types/registry/registry.go +++ b/api/types/registry/registry.go @@ -12,9 +12,6 @@ import ( // ServiceConfig stores daemon registry services configuration. type ServiceConfig struct { - AllowNondistributableArtifactsCIDRs []*NetIPNet `json:"AllowNondistributableArtifactsCIDRs,omitempty"` // Deprecated: non-distributable artifacts are deprecated and enabled by default. This field will be removed in the next release. - AllowNondistributableArtifactsHostnames []string `json:"AllowNondistributableArtifactsHostnames,omitempty"` // Deprecated: non-distributable artifacts are deprecated and enabled by default. This field will be removed in the next release. - InsecureRegistryCIDRs []*NetIPNet `json:"InsecureRegistryCIDRs"` IndexConfigs map[string]*IndexInfo `json:"IndexConfigs"` Mirrors []string