From 7c516f5c213c20e094f5b15708063b1c60cb0caa Mon Sep 17 00:00:00 2001 From: Krzysztof Ostrowski Date: Fri, 26 Aug 2022 18:04:39 +0200 Subject: [PATCH] main.go: warning for --tls-reload-interval Signed-off-by: Krzysztof Ostrowski --- main.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/main.go b/main.go index c7d4ea8f3..87f0c3d5e 100644 --- a/main.go +++ b/main.go @@ -145,6 +145,20 @@ func main() { klog.Fatalf("Failed to parse upstream URL: %v", err) } + if cfg.tls.reloadInterval != time.Minute { + klog.Warning(` +==== Deprecation Warning ====================== + +tls-reload-interval will be removed. +Using --tls-reload-interval won't be possible! + +For more information, please go to https://github.com/brancz/kube-rbac-proxy/issues/196 + +=============================================== + `) + + } + hasCerts := !(cfg.tls.certFile == "") && !(cfg.tls.keyFile == "") hasInsecureListenAddress := cfg.insecureListenAddress != "" if !hasCerts || hasInsecureListenAddress {