Derive release channel by index presence, remove unused indexes from core

This commit is contained in:
Daniel
2022-01-26 16:42:23 +01:00
parent f0799bf2e7
commit a7a94bf067
4 changed files with 59 additions and 39 deletions

View File

@@ -123,7 +123,10 @@ func updateRegistryConfig(_ context.Context, _ interface{}) error {
if releaseChannel() != previousReleaseChannel {
previousReleaseChannel = releaseChannel()
helper.SetIndexes(registry, releaseChannel())
warning := helper.SetIndexes(registry, releaseChannel(), true)
if warning != nil {
log.Warningf("updates: %s", warning)
}
changed = true
}