Skip to content

Commit

Permalink
main.go: warning for --tls-reload-interval
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Ostrowski <kostrows@redhat.com>
  • Loading branch information
ibihim committed Aug 26, 2022
1 parent fc1ca4f commit 7c516f5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c516f5

Please sign in to comment.