Provisioning: Fix bug when provision app plugins using Enterprise edition (#26340)

In OSS provisioning service init after plugin registration, but in
Enterprise it's the opposite order and installed app plugin check
fails. This adjusts service registry init priority to make sure plugins
are registered before provisioning inits.

Which issue(s) this PR fixes:
Fixes #26336

(cherry picked from commit b97d1f4170)
This commit is contained in:
Marcus Efraimsson
2020-07-16 10:36:08 +02:00
committed by Dominik Prokop
parent 7ac9057f71
commit 7d7f2d9262
4 changed files with 18 additions and 21 deletions
+1 -5
View File
@@ -34,11 +34,7 @@ var (
)
func init() {
registry.Register(&registry.Descriptor{
Name: "BackendPluginManager",
Instance: &manager{},
InitPriority: registry.Low,
})
registry.RegisterService(&manager{})
}
// Manager manages backend plugins.