Provisioning: Adds support for enabling app plugins (#25649)
Adds support for enabling app plugins using provisioning. Ref #11409 Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
This commit is contained in:
co-authored by
Arve Knudsen
Diana Payton
parent
602dd1e226
commit
cc95754e0d
@@ -2,6 +2,7 @@ package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/grafana/grafana/pkg/models"
|
||||
)
|
||||
|
||||
@@ -21,6 +22,14 @@ func (server *HTTPServer) AdminProvisioningReloadDatasources(c *models.ReqContex
|
||||
return Success("Datasources config reloaded")
|
||||
}
|
||||
|
||||
func (server *HTTPServer) AdminProvisioningReloadPlugins(c *models.ReqContext) Response {
|
||||
err := server.ProvisioningService.ProvisionPlugins()
|
||||
if err != nil {
|
||||
return Error(500, "Failed to reload plugins config", err)
|
||||
}
|
||||
return Success("Plugins config reloaded")
|
||||
}
|
||||
|
||||
func (server *HTTPServer) AdminProvisioningReloadNotifications(c *models.ReqContext) Response {
|
||||
err := server.ProvisioningService.ProvisionNotifications()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user