Plugins: Add app (#108422)

This commit is contained in:
Todd Treece
2025-08-06 13:09:10 -04:00
committed by GitHub
parent 1f76765ed7
commit ce2697bb07
37 changed files with 2923 additions and 11 deletions
+7
View File
@@ -525,6 +525,12 @@ func CreateGrafDir(t *testing.T, opts GrafanaOpts) (string, string) {
require.NoError(t, err)
}
if opts.APIServerRuntimeConfig != "" {
section, err := getOrCreateSection("grafana-apiserver")
require.NoError(t, err)
_, err = section.NewKey("runtime_config", opts.APIServerRuntimeConfig)
require.NoError(t, err)
}
dbSection, err := getOrCreateSection("database")
require.NoError(t, err)
_, err = dbSection.NewKey("query_retries", fmt.Sprintf("%d", queryRetries))
@@ -582,6 +588,7 @@ type GrafanaOpts struct {
LicensePath string
EnableRecordingRules bool
EnableSCIM bool
APIServerRuntimeConfig string
// When "unified-grpc" is selected it will also start the grpc server
APIServerStorageType options.StorageType