From 81a1ea18c8426134b9985469fc02092078912cfe Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 4 Aug 2022 08:22:37 +0200 Subject: pkg/autoupdate: "image" policy: add deprecation comment The "image" policy has been deprecated in favor of the more precise "registry" policy. Add a code comment to leave some breadcrumbs for future generations. Signed-off-by: Valentin Rothberg --- pkg/autoupdate/autoupdate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/autoupdate/autoupdate.go b/pkg/autoupdate/autoupdate.go index b3f0c53eb..297d6640e 100644 --- a/pkg/autoupdate/autoupdate.go +++ b/pkg/autoupdate/autoupdate.go @@ -45,7 +45,7 @@ const ( var supportedPolicies = map[string]Policy{ "": PolicyDefault, string(PolicyDefault): PolicyDefault, - "image": PolicyRegistryImage, + "image": PolicyRegistryImage, // Deprecated in favor of PolicyRegistryImage string(PolicyRegistryImage): PolicyRegistryImage, string(PolicyLocalImage): PolicyLocalImage, } -- cgit v1.2.3-54-g00ecf