pkg/autoupdate: use policy consts were possible
@@ -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.
