Alerting: isolate ImageStore in notify package (#60353)

This commit is contained in:
Yuri Tseretyan
2022-12-14 13:20:20 -05:00
committed by GitHub
parent 286af5a53b
commit de008005ce
24 changed files with 100 additions and 60 deletions
@@ -514,7 +514,7 @@ func (am *Alertmanager) buildReceiverIntegration(r *apimodels.PostableGrafanaRec
SecureSettings: secureSettings,
}
)
factoryConfig, err := channels.NewFactoryConfig(cfg, NewNotificationSender(am.NotificationService), am.decryptFn, tmpl, am.Store)
factoryConfig, err := channels.NewFactoryConfig(cfg, NewNotificationSender(am.NotificationService), am.decryptFn, tmpl, newImageStore(am.Store))
if err != nil {
return nil, InvalidReceiverError{
Receiver: r,