You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use grafana foundation sdk with typescript and I want to use grizzly to export to yaml via json. However, when calling grr export -k AlertNotificationPolicy policy.json, grizzly returns the error GetSpecUID not implemented for notification policies. The same error is returned when calling grr apply.
return"", fmt.Errorf("GetSpecUID not implemented for notification policies")
}
It seems GetSpecUID() returns the uid field for AlertContactPoint and the name field for AlertRuleGroup resources. How can I export/deploy an AlertNotificationPolicy resource without triggering the GetSpecUID error?
The text was updated successfully, but these errors were encountered:
IIUC, we can only have one AlertNotificationPolicy. Perhaps, therefoer, the GetSpecUID function was not implemented. Simply returning a fixed spec UID - the same thing every time, would, I believe, work around this scenario.
IIUC, we can only have one AlertNotificationPolicy. Perhaps, therefoer, the GetSpecUID function was not implemented. Simply returning a fixed spec UID - the same thing every time, would, I believe, work around this scenario.
I have created a pull request based on your suggestion: #566
I hope this is close to what you had in mind.
I use grafana foundation sdk with typescript and I want to use grizzly to export to yaml via json. However, when calling
grr export -k AlertNotificationPolicy policy.json
, grizzly returns the errorGetSpecUID not implemented for notification policies
. The same error is returned when callinggrr apply
.The function is defined here:
grizzly/pkg/grafana/notificationpolicy-handler.go
Lines 48 to 50 in aaf77a3
It seems
GetSpecUID()
returns theuid
field forAlertContactPoint
and thename
field forAlertRuleGroup
resources. How can I export/deploy anAlertNotificationPolicy
resource without triggering theGetSpecUID
error?The text was updated successfully, but these errors were encountered: