Skip to content

Commit

Permalink
Find notificaqtion secret from alert namespace (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha authored Aug 23, 2017
1 parent e2fe5b3 commit 866cb10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/notifier/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ type Secret struct {
}

func getLoader(client clientset.Interface, alert tapi.Alert) (envconfig.LoaderFunc, error) {
cfg, err := client.CoreV1().
Secrets(util.OperatorNamespace()).
Get(alert.GetNotifierSecretName(), metav1.GetOptions{})
cfg, err := client.CoreV1().Secrets(alert.GetNamespace()).Get(alert.GetNotifierSecretName(), metav1.GetOptions{})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 866cb10

Please sign in to comment.