mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Create feature toggle for provisioning (#47167)
* Create feature flag for alerting provisioning * Fix tabs for golint compliance
This commit is contained in:
parent
38dc34359b
commit
b8e277ee4c
@ -49,6 +49,7 @@ export interface FeatureToggles {
|
||||
migrationLocking?: boolean;
|
||||
saveDashboardDrawer?: boolean;
|
||||
storage?: boolean;
|
||||
alertProvisioning?: boolean;
|
||||
storageLocalUpload?: boolean;
|
||||
azureMonitorResourcePickerForMetrics?: boolean;
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
// To change feature flags, edit:
|
||||
// pkg/services/featuremgmt/registry.go
|
||||
// Then run tests in:
|
||||
// pkg/services/featuremgmt/toggles_gen_test.go
|
||||
|
||||
package featuremgmt
|
||||
|
||||
var (
|
||||
@ -178,6 +183,11 @@ var (
|
||||
Description: "Configurable storage for dashboards, datasources, and resources",
|
||||
State: FeatureStateAlpha,
|
||||
},
|
||||
{
|
||||
Name: "alertProvisioning",
|
||||
Description: "Provisioning-friendly routes for alerting",
|
||||
State: FeatureStateAlpha,
|
||||
},
|
||||
{
|
||||
Name: "storageLocalUpload",
|
||||
Description: "allow uploads to local storage",
|
||||
|
@ -1,4 +1,8 @@
|
||||
// NOTE: This file is autogenerated
|
||||
// NOTE: This file was auto generated. DO NOT EDIT DIRECTLY!
|
||||
// To change feature flags, edit:
|
||||
// pkg/services/featuremgmt/registry.go
|
||||
// Then run tests in:
|
||||
// pkg/services/featuremgmt/toggles_gen_test.go
|
||||
|
||||
package featuremgmt
|
||||
|
||||
@ -135,6 +139,10 @@ const (
|
||||
// Configurable storage for dashboards, datasources, and resources
|
||||
FlagStorage = "storage"
|
||||
|
||||
// FlagAlertProvisioning
|
||||
// Provisioning-friendly routes for alerting
|
||||
FlagAlertProvisioning = "alertProvisioning"
|
||||
|
||||
// FlagStorageLocalUpload
|
||||
// allow uploads to local storage
|
||||
FlagStorageLocalUpload = "storageLocalUpload"
|
||||
|
@ -117,7 +117,11 @@ func generateRegistry(t *testing.T) string {
|
||||
|
||||
var buff bytes.Buffer
|
||||
|
||||
buff.WriteString(`// NOTE: This file is autogenerated
|
||||
buff.WriteString(`// NOTE: This file was auto generated. DO NOT EDIT DIRECTLY!
|
||||
// To change feature flags, edit:
|
||||
// pkg/services/featuremgmt/registry.go
|
||||
// Then run tests in:
|
||||
// pkg/services/featuremgmt/toggles_gen_test.go
|
||||
|
||||
package featuremgmt
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user