diff --git a/util/util.go b/util/util.go index 9e6bdee6..5e2ae2bd 100644 --- a/util/util.go +++ b/util/util.go @@ -96,7 +96,7 @@ func getPodEvents(c kubernetes.Interface, name, namespace string) (*v1.EventList func GetProviders() []provider.Provider { var providers []provider.Provider - for key, value := range viper.Get("providers").(map[string]interface{}) { + for key, value := range viper.Get("alert").(map[string]interface{}) { for c, v := range value.(map[string]interface{}) { if key == "slack" && c == "webhook" && len(strings.TrimSpace(v.(string))) > 0 { providers = append(providers, provider.NewSlack(viper.GetString("alert.slack.webhook")))