diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-04 08:22:37 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-08-04 13:07:58 +0200 |
commit | 81a1ea18c8426134b9985469fc02092078912cfe (patch) | |
tree | 1c833f2bd0e0d5fbc5331d92dbf682b3ebb235e3 | |
parent | 43cca5d97a2c971f3386099d6b66250a1ebad96f (diff) | |
download | podman-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.go | 2 |
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, } |