Revert "K8s: Fix plugin updater" (#101739)
Revert "K8s: Fix plugin updater (#101646)"
This reverts commit 605a4cbff9.
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/grafana/grafana/pkg/apimachinery/identity"
|
||||
"github.com/grafana/grafana/pkg/bus"
|
||||
"github.com/grafana/grafana/pkg/infra/log"
|
||||
"github.com/grafana/grafana/pkg/services/accesscontrol"
|
||||
@@ -67,11 +66,10 @@ func (du *DashboardUpdater) updateAppDashboards() {
|
||||
if !pluginSetting.Enabled {
|
||||
continue
|
||||
}
|
||||
ctx, _ := identity.WithServiceIdentity(context.Background(), pluginSetting.OrgID)
|
||||
|
||||
if pluginDef, exists := du.pluginStore.Plugin(ctx, pluginSetting.PluginID); exists {
|
||||
if pluginDef, exists := du.pluginStore.Plugin(context.Background(), pluginSetting.PluginID); exists {
|
||||
if pluginDef.Info.Version != pluginSetting.PluginVersion {
|
||||
du.syncPluginDashboards(ctx, pluginDef, pluginSetting.OrgID)
|
||||
du.syncPluginDashboards(context.Background(), pluginDef, pluginSetting.OrgID)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user