From 43add83d1a84fe0945860a9cc700df92c7e8341f Mon Sep 17 00:00:00 2001 From: Hugo Kiyodi Oshiro Date: Wed, 18 Oct 2023 15:17:03 +0200 Subject: [PATCH] Plugins: Add feat toggle to install managed plugins (#75973) --- .../configure-grafana/feature-toggles/index.md | 1 + packages/grafana-data/src/types/featureToggles.gen.ts | 1 + pkg/services/featuremgmt/registry.go | 7 +++++++ pkg/services/featuremgmt/toggles_gen.csv | 1 + pkg/services/featuremgmt/toggles_gen.go | 4 ++++ 5 files changed, 14 insertions(+) diff --git a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md index 553de14518a..db79bea4a8f 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -153,6 +153,7 @@ Experimental features might be changed or removed without prior notice. | `cachingOptimizeSerializationMemoryUsage` | If enabled, the caching backend gradually serializes query responses for the cache, comparing against the configured `[caching]max_value_mb` value as it goes. This can can help prevent Grafana from running out of memory while attempting to cache very large query responses. | | `pluginsInstrumentationStatusSource` | Include a status source label for plugin request metrics and logs | | `costManagementUi` | Toggles the display of the cost management ui plugin | +| `managedPluginsInstall` | Install managed plugins directly from plugins catalog | ## Development feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index e4b4ea317d2..9c20e806721 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -147,4 +147,5 @@ export interface FeatureToggles { panelTitleSearchInV1?: boolean; pluginsInstrumentationStatusSource?: boolean; costManagementUi?: boolean; + managedPluginsInstall?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 7d1a0491755..ac41ee33222 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -904,5 +904,12 @@ var ( FrontendOnly: false, Owner: grafanaDatabasesFrontend, }, + { + Name: "managedPluginsInstall", + Description: "Install managed plugins directly from plugins catalog", + Stage: FeatureStageExperimental, + RequiresDevMode: false, + Owner: grafanaPluginsPlatformSquad, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 3b336f4891e..777166d5c28 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -128,3 +128,4 @@ cachingOptimizeSerializationMemoryUsage,experimental,@grafana/grafana-operator-e panelTitleSearchInV1,experimental,@grafana/backend-platform,true,false,false,false pluginsInstrumentationStatusSource,experimental,@grafana/plugins-platform-backend,false,false,false,false costManagementUi,experimental,@grafana/databases-frontend,false,false,false,false +managedPluginsInstall,experimental,@grafana/plugins-platform-backend,false,false,false,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index dc2756aec2a..237018d2a32 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -522,4 +522,8 @@ const ( // FlagCostManagementUi // Toggles the display of the cost management ui plugin FlagCostManagementUi = "costManagementUi" + + // FlagManagedPluginsInstall + // Install managed plugins directly from plugins catalog + FlagManagedPluginsInstall = "managedPluginsInstall" )