Skip to content

Commit

Permalink
fix(eva): long standing timeout in discovery k8s apiserver with sa, e…
Browse files Browse the repository at this point in the history
…rror msg: GET, ...connection timed out
  • Loading branch information
neargle committed Apr 6, 2024
1 parent addb89f commit b4071e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tool/kubectl/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"os"
"regexp"
"strings"
"time"

"github.com/cdk-team/CDK/conf"
"github.com/cdk-team/CDK/pkg/errors"
Expand Down Expand Up @@ -139,6 +140,7 @@ func ServerAccountRequest(opts K8sRequestOption) (string, error) {
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
Timeout: time.Second * 3,
}
var request *http.Request
opts.Method = strings.ToUpper(opts.Method)
Expand Down

0 comments on commit b4071e3

Please sign in to comment.