* refactor template service to contstruct notification template in one place, get provenance before creating and calculate resource version after. * refactor get by UID and name * introduce template kind in NotificationTemplate * introduce includeImported flag and use in the k8s api * support imported templates * add kind to template uid * tests for imported templates * update API model * set kind to default templates
10 lines
135 B
CUE
10 lines
135 B
CUE
package v0alpha1
|
|
|
|
TemplateKind: *"grafana" | "mimir"
|
|
|
|
TemplateGroupSpec: {
|
|
title: string
|
|
content: string
|
|
kind: TemplateKind
|
|
}
|