A custom annotation or label with json as text should be allow to transform to object.
For example
[
{
"annotations": {
"summary": "Instance instance1 has been down for more than 5 minutes",
"data": "{\"field1\": \"value1\"}"
},
"labels": {
"instance": "instance1"
},
"startsAt": "2024-03-12T14:09:43.689Z"
}]
we should be allowed to do something like that in template:
{{ range (data .Annotations.data).SortedPairs }} - {{ .Name }} = {{ .Value }}
{{ end }}
A custom annotation or label with json as text should be allow to transform to object. For example
we should be allowed to do something like that in template: