summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-08-04 08:22:37 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-08-04 13:07:58 +0200
commit81a1ea18c8426134b9985469fc02092078912cfe (patch)
tree1c833f2bd0e0d5fbc5331d92dbf682b3ebb235e3
parent43cca5d97a2c971f3386099d6b66250a1ebad96f (diff)
downloadpodman-81a1ea18c8426134b9985469fc02092078912cfe.tar.gz
podman-81a1ea18c8426134b9985469fc02092078912cfe.tar.bz2
podman-81a1ea18c8426134b9985469fc02092078912cfe.zip
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>
-rw-r--r--pkg/autoupdate/autoupdate.go2
1 files changed, 1 insertions, 1 deletions
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,
}