potential fix for flakey tlsBackoff (#2702)

This commit is contained in:
kmahapatra 2023-03-10 15:46:25 -05:00 committed by GitHub
parent 0902ea8432
commit 511b3941d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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.