grafana/crossplane-provider-grafana

escape terraform interpolation ${} in rulegroup

cheskayang opened this issue · 1 comments

Hi grafana team,

i ran into this error when creating the RuleGroup resource
Invalid reference: A reference to a resource type must be followed by at least one attribute access, specifying the resource name.

after some digging, turns out it was caused by having ${}

example, having this in the model expression

"$ErrorsLast24h > ${PercentOfMessagesLast24h}"

should be a similar issue to #59
and

#89

currently bypassing this using $$. we use the exported rules yaml files (so once get into grafana, it will become $), would be nice to have a fix

This should be fixed in v0.13.0!