Skip to content

Commit

Permalink
chore: drop tat notification
Browse files Browse the repository at this point in the history
Signed-off-by: francois.samin <francois.samin@corp.ovh.com>
  • Loading branch information
fsamin authored and rclsilver committed Mar 25, 2024
1 parent 464ee06 commit 447d6cf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 123 deletions.
17 changes: 0 additions & 17 deletions pkg/notify/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ovh/utask/pkg/notify"
"github.com/ovh/utask/pkg/notify/opsgenie"
"github.com/ovh/utask/pkg/notify/slack"
"github.com/ovh/utask/pkg/notify/tat"
"github.com/ovh/utask/pkg/notify/webhook"
)

Expand Down Expand Up @@ -51,22 +50,6 @@ func Init(store *configstore.Store) error {
}
notify.RegisterSender(name, ogns, ncfg.DefaultNotificationStrategy, ncfg.TemplateNotificationStrategies)

case tat.Type:
f := utask.NotifyBackendTat{}
if err := json.Unmarshal(ncfg.Config, &f); err != nil {
return fmt.Errorf("%s: %s, %s: %s", errRetrieveCfg, ncfg.Type, name, err)
}
tn, err := tat.NewTatNotificationSender(
f.URL,
f.Username,
f.Password,
f.Topic,
)
if err != nil {
return fmt.Errorf("failed to instantiate tat notification sender: %s", err)
}
notify.RegisterSender(name, tn, ncfg.DefaultNotificationStrategy, ncfg.TemplateNotificationStrategies)

case slack.Type:
f := utask.NotifyBackendSlack{}
if err := json.Unmarshal(ncfg.Config, &f); err != nil {
Expand Down
106 changes: 0 additions & 106 deletions pkg/notify/tat/tat.go

This file was deleted.

0 comments on commit 447d6cf

Please sign in to comment.