Plugins: Add feat toggle to install managed plugins (#75973)

pull/76760/head
Hugo Kiyodi Oshiro 2 years ago committed by GitHub
parent a6d8cd87a7
commit 43add83d1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
  2. 1
      packages/grafana-data/src/types/featureToggles.gen.ts
  3. 7
      pkg/services/featuremgmt/registry.go
  4. 1
      pkg/services/featuremgmt/toggles_gen.csv
  5. 4
      pkg/services/featuremgmt/toggles_gen.go

@ -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. | | `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 | | `pluginsInstrumentationStatusSource` | Include a status source label for plugin request metrics and logs |
| `costManagementUi` | Toggles the display of the cost management ui plugin | | `costManagementUi` | Toggles the display of the cost management ui plugin |
| `managedPluginsInstall` | Install managed plugins directly from plugins catalog |
## Development feature toggles ## Development feature toggles

@ -147,4 +147,5 @@ export interface FeatureToggles {
panelTitleSearchInV1?: boolean; panelTitleSearchInV1?: boolean;
pluginsInstrumentationStatusSource?: boolean; pluginsInstrumentationStatusSource?: boolean;
costManagementUi?: boolean; costManagementUi?: boolean;
managedPluginsInstall?: boolean;
} }

@ -904,5 +904,12 @@ var (
FrontendOnly: false, FrontendOnly: false,
Owner: grafanaDatabasesFrontend, Owner: grafanaDatabasesFrontend,
}, },
{
Name: "managedPluginsInstall",
Description: "Install managed plugins directly from plugins catalog",
Stage: FeatureStageExperimental,
RequiresDevMode: false,
Owner: grafanaPluginsPlatformSquad,
},
} }
) )

@ -128,3 +128,4 @@ cachingOptimizeSerializationMemoryUsage,experimental,@grafana/grafana-operator-e
panelTitleSearchInV1,experimental,@grafana/backend-platform,true,false,false,false panelTitleSearchInV1,experimental,@grafana/backend-platform,true,false,false,false
pluginsInstrumentationStatusSource,experimental,@grafana/plugins-platform-backend,false,false,false,false pluginsInstrumentationStatusSource,experimental,@grafana/plugins-platform-backend,false,false,false,false
costManagementUi,experimental,@grafana/databases-frontend,false,false,false,false costManagementUi,experimental,@grafana/databases-frontend,false,false,false,false
managedPluginsInstall,experimental,@grafana/plugins-platform-backend,false,false,false,false

1 Name Stage Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
128 panelTitleSearchInV1 experimental @grafana/backend-platform true false false false
129 pluginsInstrumentationStatusSource experimental @grafana/plugins-platform-backend false false false false
130 costManagementUi experimental @grafana/databases-frontend false false false false
131 managedPluginsInstall experimental @grafana/plugins-platform-backend false false false false

@ -522,4 +522,8 @@ const (
// FlagCostManagementUi // FlagCostManagementUi
// Toggles the display of the cost management ui plugin // Toggles the display of the cost management ui plugin
FlagCostManagementUi = "costManagementUi" FlagCostManagementUi = "costManagementUi"
// FlagManagedPluginsInstall
// Install managed plugins directly from plugins catalog
FlagManagedPluginsInstall = "managedPluginsInstall"
) )

Loading…
Cancel
Save