Skip to content

Commit

Permalink
Merge pull request #197 from ibihim/tls-interval-warning
Browse files Browse the repository at this point in the history
main.go: warning for --tls-reload-interval
  • Loading branch information
ibihim committed Oct 4, 2022
2 parents fc1ca4f + 7c516f5 commit 8459e4a
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 8459e4a

Please sign in to comment.