Skip to content

Commit c954b43

Browse files
ivanmatmatiMo3m3n
authored andcommitted
BUG/MINOR: fix client-ca annotation removal
1 parent 9216f14 commit c954b43

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

controller/handler/https.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,12 @@ func (h HTTPS) handleClientTLSAuth(k store.K8s, cfg *config.ControllerCfg, api a
8888
return
8989
}
9090
}
91-
if secret == nil {
92-
return
93-
}
94-
caFile, err = cfg.Certificates.HandleTLSSecret(secret, certs.CA_CERT)
95-
if err != nil {
96-
err = fmt.Errorf("client TLS Auth: %w", err)
97-
return
91+
if secret != nil {
92+
caFile, err = cfg.Certificates.HandleTLSSecret(secret, certs.CA_CERT)
93+
if err != nil {
94+
err = fmt.Errorf("client TLS Auth: %w", err)
95+
return
96+
}
9897
}
9998

10099
binds, bindsErr := api.FrontendBindsGet(cfg.FrontHTTPS)

0 commit comments

Comments
 (0)