feat(annotations): add feature flag for annotations (#21220)

* feat(annotations): add feature flag for annotations
pull/21235/head
William Baker 2021-04-15 09:53:55 -04:00 committed by GitHub
parent cd39440e3f
commit de1d8dc2d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -153,3 +153,11 @@
contact: Monitoring Team
expose: true
lifetime: temporary
- name: Annotations UI
description: Management, display, and manual addition of Annotations from the UI
key: annotations
default: false
contact: Monitoring Team
lifetime: temporary
expose: true

View File

@ -268,6 +268,20 @@ func TypeAheadDropdownsForVariables() BoolFlag {
return typeAheadVariableDropdown
}
var annotations = MakeBoolFlag(
"Annotations UI",
"annotations",
"Monitoring Team",
false,
Temporary,
true,
)
// AnnotationsUi - Management, display, and manual addition of Annotations from the UI
func AnnotationsUi() BoolFlag {
return annotations
}
var all = []Flag{
appMetrics,
groupWindowAggregateTranspose,
@ -288,6 +302,7 @@ var all = []Flag{
cursorAtEOF,
refreshSingleCell,
typeAheadVariableDropdown,
annotations,
}
var byKey = map[string]Flag{
@ -310,4 +325,5 @@ var byKey = map[string]Flag{
"cursorAtEOF": cursorAtEOF,
"refreshSingleCell": refreshSingleCell,
"typeAheadVariableDropdown": typeAheadVariableDropdown,
"annotations": annotations,
}