mirror of
https://github.com/kubereboot/kured.git
synced 2026-08-23 21:36:33 +00:00
fix slack deprecation notice
This commit is contained in:
+3
-3
@@ -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.")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user