Plugins: Add ability to run backend plugins in containers (#110534)

* add client cfg for containers

* remove unused code

* add field for skip host env for proto client

* add docker to Swagger ignore

* add to enterprise swagger gen

* undo go.mod changes

* pass container image

* propagate container image field
This commit is contained in:
Will Browne
2025-09-10 11:12:23 +01:00
committed by GitHub
parent 5c6fd5e5af
commit 0a7e0e5298
14 changed files with 150 additions and 20 deletions
+8
View File
@@ -1993,6 +1993,14 @@ var (
Owner: grafanaPluginsPlatformSquad,
Expression: "false",
},
{
Name: "pluginContainers",
Description: "Enables running plugins in containers",
Stage: FeatureStagePrivatePreview,
Owner: grafanaPluginsPlatformSquad,
Expression: "false",
RequiresRestart: true,
},
}
)
+1
View File
@@ -255,3 +255,4 @@ graphiteBackendMode,privatePreview,@grafana/partner-datasources,false,false,fals
azureResourcePickerUpdates,preview,@grafana/partner-datasources,false,false,true
prometheusTypeMigration,experimental,@grafana/partner-datasources,false,true,false
dskitBackgroundServices,experimental,@grafana/plugins-platform-backend,false,true,false
pluginContainers,privatePreview,@grafana/plugins-platform-backend,false,true,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
255 azureResourcePickerUpdates preview @grafana/partner-datasources false false true
256 prometheusTypeMigration experimental @grafana/partner-datasources false true false
257 dskitBackgroundServices experimental @grafana/plugins-platform-backend false true false
258 pluginContainers privatePreview @grafana/plugins-platform-backend false true false
+4
View File
@@ -1030,4 +1030,8 @@ const (
// FlagDskitBackgroundServices
// Enables dskit background service wrapper
FlagDskitBackgroundServices = "dskitBackgroundServices"
// FlagPluginContainers
// Enables running plugins in containers
FlagPluginContainers = "pluginContainers"
)
+14
View File
@@ -2593,6 +2593,20 @@
"expression": "false"
}
},
{
"metadata": {
"name": "pluginContainers",
"resourceVersion": "1756911074581",
"creationTimestamp": "2025-09-03T14:51:14Z"
},
"spec": {
"description": "Enables running plugins in containers",
"stage": "privatePreview",
"codeowner": "@grafana/plugins-platform-backend",
"requiresRestart": true,
"expression": "false"
}
},
{
"metadata": {
"name": "pluginProxyPreserveTrailingSlash",
@@ -4,13 +4,12 @@ import (
"fmt"
"strings"
"github.com/grafana/grafana/pkg/util"
"github.com/grafana/grafana-azure-sdk-go/v2/azsettings"
"github.com/grafana/grafana/pkg/plugins/config"
"github.com/grafana/grafana/pkg/services/featuremgmt"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/util"
)
// ProvidePluginManagementConfig returns a new config.PluginManagementCfg.