Skip to content

Commit

Permalink
🧰 update config name (#14)
Browse files Browse the repository at this point in the history
* fix: update config name

* fix: remove redundant statements
  • Loading branch information
amgadramses authored Dec 19, 2021
1 parent 0f9b9ae commit 1d1378d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down

0 comments on commit 1d1378d

Please sign in to comment.