Plugins: Add toggle for prioritizing loading plugins from CDN (#111671)

add toggle for loading cdn plugins first
This commit is contained in:
Will Browne
2025-09-26 17:12:44 +01:00
committed by GitHub
parent e7f57446c1
commit 8fe2925c47
5 changed files with 45 additions and 0 deletions
@@ -1188,4 +1188,9 @@ export interface FeatureToggles {
* @default false
*/
filterOutBotsFromFrontendLogs?: boolean;
/**
* Prioritize loading plugins from the CDN before other sources
* @default false
*/
cdnPluginsLoadFirst?: boolean;
}
+8
View File
@@ -2061,6 +2061,14 @@ var (
Owner: grafanaPluginsPlatformSquad,
Expression: "false",
},
{
Name: "cdnPluginsLoadFirst",
Description: "Prioritize loading plugins from the CDN before other sources",
Stage: FeatureStageExperimental,
FrontendOnly: false,
Owner: grafanaPluginsPlatformSquad,
Expression: "false",
},
}
)
+1
View File
@@ -264,3 +264,4 @@ dskitBackgroundServices,experimental,@grafana/plugins-platform-backend,false,tru
pluginContainers,privatePreview,@grafana/plugins-platform-backend,false,true,false
tempoSearchBackendMigration,GA,@grafana/oss-big-tent,false,true,false
filterOutBotsFromFrontendLogs,experimental,@grafana/plugins-platform-backend,false,false,true
cdnPluginsLoadFirst,experimental,@grafana/plugins-platform-backend,false,false,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
264 pluginContainers privatePreview @grafana/plugins-platform-backend false true false
265 tempoSearchBackendMigration GA @grafana/oss-big-tent false true false
266 filterOutBotsFromFrontendLogs experimental @grafana/plugins-platform-backend false false true
267 cdnPluginsLoadFirst experimental @grafana/plugins-platform-backend false false false
+4
View File
@@ -1066,4 +1066,8 @@ const (
// FlagFilterOutBotsFromFrontendLogs
// Filter out bots from collecting data for Frontend Observability
FlagFilterOutBotsFromFrontendLogs = "filterOutBotsFromFrontendLogs"
// FlagCdnPluginsLoadFirst
// Prioritize loading plugins from the CDN before other sources
FlagCdnPluginsLoadFirst = "cdnPluginsLoadFirst"
)
+27
View File
@@ -836,6 +836,33 @@
"frontend": true
}
},
{
"metadata": {
"name": "cdnPluginsLoadFirst",
"resourceVersion": "1758882341746",
"creationTimestamp": "2025-09-26T10:25:41Z"
},
"spec": {
"description": "Prioritize loading plugins from the CDN before other sources",
"stage": "experimental",
"codeowner": "@grafana/plugins-platform-backend",
"expression": "false"
}
},
{
"metadata": {
"name": "cdnPluginsLoadedFirst",
"resourceVersion": "1758881920003",
"creationTimestamp": "2025-09-26T10:18:40Z",
"deletionTimestamp": "2025-09-26T10:25:41Z"
},
"spec": {
"description": "Prioritize loading plugins from the CDN before other sources",
"stage": "experimental",
"codeowner": "@grafana/plugins-platform-backend",
"expression": "false"
}
},
{
"metadata": {
"name": "cloudRBACRoles",