From c826d73695a6c1c0e69e3a29dcf5fedd2956a4eb Mon Sep 17 00:00:00 2001 From: Danny Kulchinsky Date: Fri, 28 May 2021 13:52:01 -0400 Subject: [PATCH] fix slack deprecation notice --- cmd/kured/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/kured/main.go b/cmd/kured/main.go index 6f6cfebba..f02d79edb 100644 --- a/cmd/kured/main.go +++ b/cmd/kured/main.go @@ -47,7 +47,7 @@ var ( dsName string lockAnnotation string lockTTL time.Duration - lockReleaseDelay time.Duration + lockReleaseDelay time.Duration prometheusURL string preferNoScheduleTaintName string alertFilter *regexp.Regexp @@ -168,8 +168,8 @@ func flagCheck(cmd *cobra.Command, args []string) { log.Warnf("Cannot use both --notify-url and --slack-hook-url flags. Kured will use --notify-url flag only...") slackHookURL = "" } - if slackChannel != "" || slackHookURL != "" || slackUsername != "" { - log.Warnf("Deprecated flag(s). Please use --notify-url flag instead.") + if slackChannel != "" || slackHookURL != "" { + log.Warnf("slack-* flag(s) are being deprecated. Please use --notify-url flag instead.") } }