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 <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2022-08-04 08:22:37 +02:00
parent 43cca5d97a
commit 81a1ea18c8

View File

@ -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,
}