grafana / crossplane-provider-grafana

Crossplane provider of https://github.com/grafana/terraform-provider-grafana. Generated by https://github.com/upbound/upjet
Apache License 2.0
26 stars 14 forks source link

escape terraform interpolation ${} in rulegroup #97

Closed cheskayang closed 5 months ago

cheskayang commented 6 months ago

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 https://github.com/grafana/crossplane-provider-grafana/issues/59 and

https://github.com/grafana/crossplane-provider-grafana/issues/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

julienduchesne commented 5 months ago

This should be fixed in v0.13.0!