Alerting: Return default builtin templates in k8s templategroup API and UI (#96330)
* Alerting: PoC - default template in k8s templategroup API * Move code to grafana/alerting * Move validation to admission validation abstraction * Testing * Linting * Workspace update * Update grafana/alerting hash to the merged commit * More user-friendly name and remove need for CREATE/UPDATE validation Use __default__ for k8s object name and UID so that we don't need to restrict CREATE/UPDATE for similarly named user-owned templates.
This commit is contained in:
@@ -7,6 +7,8 @@ import (
|
||||
"github.com/grafana/grafana/apps/alerting/common"
|
||||
)
|
||||
|
||||
const DefaultTemplateTitle = "Built-in Templates"
|
||||
|
||||
func (o *TemplateGroup) GetProvenanceStatus() string {
|
||||
if o == nil || o.Annotations == nil {
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user