update pkg v1.1.20 to reload certs in k8s always (#14470)

This commit is contained in:
Harshavardhana
2022-03-04 20:34:39 -08:00
committed by GitHub
parent b0c84e3de7
commit 92a77cc78e
4 changed files with 7 additions and 3 deletions

View File

@@ -633,6 +633,7 @@ func NewGatewayHTTPTransportWithClientCerts(clientCert, clientKey string) *http.
err.Error()))
}
if c != nil {
c.UpdateReloadDuration(10 * time.Second)
c.ReloadOnSignal(syscall.SIGHUP) // allow reloads upon SIGHUP
transport.TLSClientConfig.GetClientCertificate = c.GetClientCertificate
}