Revert "K8s: Fix plugin updater" (#101739)

Revert "K8s: Fix plugin updater (#101646)"

This reverts commit 605a4cbff9.
pull/101801/head
Stephanie Hingtgen 4 months ago committed by GitHub
parent ab56ac515d
commit c8278a88c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      pkg/services/plugindashboards/service/dashboard_updater.go

@ -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)
}
}
}

Loading…
Cancel
Save