From 866cb109509579352c2372afd98e4bddd243e9e6 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 23 Aug 2017 01:49:34 -0700 Subject: [PATCH] Find notificaqtion secret from alert namespace (#207) --- plugins/notifier/lib.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/notifier/lib.go b/plugins/notifier/lib.go index 7d5956516..6cff061ad 100644 --- a/plugins/notifier/lib.go +++ b/plugins/notifier/lib.go @@ -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 }