pkg/autoupdate: use policy consts were possible

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2022-08-03 14:52:38 +02:00
parent 1cc933c6bb
commit 82d18a86f3

View File

@ -44,10 +44,10 @@ const (
// Map for easy lookups of supported policies.
var supportedPolicies = map[string]Policy{
"": PolicyDefault,
"disabled": PolicyDefault,
string(PolicyDefault): PolicyDefault,
"image": PolicyRegistryImage,
"registry": PolicyRegistryImage,
"local": PolicyLocalImage,
string(PolicyRegistryImage): PolicyRegistryImage,
string(PolicyLocalImage): PolicyLocalImage,
}
// updater includes shared state for auto-updating one or more containers.