Generate and format files
- Run hack/update-codegen.sh - Run hack/update-generated-device-plugin.sh - Run hack/update-generated-protobuf.sh - Run hack/update-generated-runtime.sh - Run hack/update-generated-swagger-docs.sh - Run hack/update-openapi-spec.sh - Run hack/update-gofmt.sh Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
@@ -38,7 +38,8 @@ const (
|
||||
|
||||
// New creates Prober that will skip TLS verification while probing.
|
||||
// followNonLocalRedirects configures whether the prober should follow redirects to a different hostname.
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
//
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
func New(followNonLocalRedirects bool) Prober {
|
||||
tlsConfig := &tls.Config{InsecureSkipVerify: true}
|
||||
return NewWithTLSConfig(tlsConfig, followNonLocalRedirects)
|
||||
@@ -46,7 +47,8 @@ func New(followNonLocalRedirects bool) Prober {
|
||||
|
||||
// NewWithTLSConfig takes tls config as parameter.
|
||||
// followNonLocalRedirects configures whether the prober should follow redirects to a different hostname.
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
//
|
||||
// If disabled, redirects to other hosts will trigger a warning result.
|
||||
func NewWithTLSConfig(config *tls.Config, followNonLocalRedirects bool) Prober {
|
||||
// We do not want the probe use node's local proxy set.
|
||||
transport := utilnet.SetTransportDefaults(
|
||||
|
Reference in New Issue
Block a user