@@ -43,8 +43,6 @@ const (
4343 webhookPortEnvKey = "CATTLE_PORT"
4444 webhookURLEnvKey = "CATTLE_WEBHOOK_URL"
4545 allowedCNsEnv = "ALLOWED_CNS"
46- ignoreTLSHandshakeError = "IGNORE_TLS_HANDSHAKE_ERROR"
47- ignoreTLSHandErrorVal = false
4846)
4947
5048var caFile = filepath .Join (os .TempDir (), "k8s-webhook-server" , "client-ca" , "ca.crt" )
@@ -153,7 +151,6 @@ func listenAndServe(ctx context.Context, clients *clients.Clients, validators []
153151 return fmt .Errorf ("failed to decode webhook port value '%s': %w" , portStr , err )
154152 }
155153 }
156- ignoreTLSHandErrorVal , _ := strconv .ParseBool (os .Getenv (ignoreTLSHandshakeError ))
157154 return server .ListenAndServe (ctx , webhookHTTPSPort , webhookHTTPPort , router , & server.ListenOpts {
158155 Secrets : clients .Core .Secret (),
159156 CertNamespace : namespace ,
@@ -166,8 +163,7 @@ func listenAndServe(ctx context.Context, clients *clients.Clients, validators []
166163 FilterCN : dynamiclistener .OnlyAllow (tlsName ),
167164 TLSConfig : tlsConfig ,
168165 },
169- DisplayServerLogs : true ,
170- IgnoreTLSHandshakeError : ignoreTLSHandErrorVal ,
166+ DisplayServerLogs : true ,
171167 })
172168}
173169
0 commit comments