We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b07ca6 commit 5d2e9b6Copy full SHA for 5d2e9b6
1 file changed
cmd/kube-rbac-proxy/app/options/options.go
@@ -149,7 +149,7 @@ func (o *ProxyRunOptions) Flags() k8sapiflag.NamedFlagSets {
149
func (o *ProxyRunOptions) Validate() error {
150
var errs []error
151
152
- hasCerts := !(o.TLS.CertFile == "") && !(o.TLS.KeyFile == "")
+ hasCerts := o.TLS.CertFile != "" && o.TLS.KeyFile != ""
153
hasInsecureListenAddress := o.InsecureListenAddress != ""
154
if !hasCerts || hasInsecureListenAddress {
155
klog.Warning(`
0 commit comments