Add env to chart options to be used for Slack and Teams URLs

This commit is contained in:
stefanprodan
2019-10-09 16:53:34 +03:00
parent faae6a7c3b
commit 1cb09890fb
3 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -287,7 +287,7 @@ func startLeaderElection(ctx context.Context, run func(), ns string, kubeClient
func initNotifier(logger *zap.SugaredLogger) (client notifier.Interface) {
provider := "slack"
notifierURL := fromEnv("SLACK_URL", slackURL)
if msteamsURL != "" {
if msteamsURL != "" || os.Getenv("MSTEAMS_URL") != "" {
provider = "msteams"
notifierURL = fromEnv("MSTEAMS_URL", msteamsURL)
}