Skip to content

Commit

Permalink
Merge pull request #769 from kmala/master
Browse files Browse the repository at this point in the history
add default timeout for http client
  • Loading branch information
k8s-ci-robot authored Oct 16, 2024
2 parents c6e9f30 + 46444b3 commit 19ba0b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/token/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ func NewVerifier(clusterID, partitionID, region string) Verifier {
CheckRedirect: func(req *http.Request, via []*http.Request) error {
return http.ErrUseLastResponse
},
Timeout: 10 * time.Second,
},
clusterID: clusterID,
validSTShostnames: stsHostsForPartition(partitionID, region),
Expand Down

0 comments on commit 19ba0b7

Please sign in to comment.