Plugins: Add app (#108422)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user