mirror of https://github.com/knative/pkg.git
potential fix for flakey tlsBackoff (#2702)
This commit is contained in:
parent
0902ea8432
commit
511b3941d4
|
|
@ -207,7 +207,7 @@ func newDialer(ctx context.Context, tlsConf *tls.Config) func(addr string) (net.
|
|||
}
|
||||
if tlsConf != nil {
|
||||
dialFn = func(addr string) (net.Conn, error) {
|
||||
bo.Duration = 10 * time.Millisecond
|
||||
bo.Duration = 50 * time.Millisecond
|
||||
bo.Steps = 3
|
||||
return NewTLSBackoffDialer(bo)(ctx, "tcp4", addr, tlsConf)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ const (
|
|||
// Webhook is the name of the override key used inside of the logging config for Webhook Controller.
|
||||
webhookNameEnvKey = "WEBHOOK_NAME"
|
||||
|
||||
secretNameEnvKey = "WEBHOOK_SECRET_NAME"
|
||||
secretNameEnvKey = "WEBHOOK_SECRET_NAME" //nolint:gosec // This is not a hardcoded credential
|
||||
)
|
||||
|
||||
// PortFromEnv returns the webhook port set by portEnvKey, or default port if env var is not set.
|
||||
|
|
|
|||
Loading…
Reference in New Issue