Skip to content

Commit 993c54b

Browse files
committed
Remove custom client for e2e test
1 parent c65bab2 commit 993c54b

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pkg/ec2metadata/ec2metadata.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,18 +122,6 @@ type NodeMetadata struct {
122122

123123
// New constructs an instance of the Service client
124124
func New(metadataURL string, tries int) *Service {
125-
if strings.HasPrefix(metadataURL, "http://amazon-ec2-metadata-mock-service.default.svc.cluster.local") {
126-
return &Service{
127-
metadataURL: metadataURL,
128-
tries: tries,
129-
httpClient: http.Client{
130-
Timeout: 2 * time.Second,
131-
Transport: &http.Transport{
132-
DisableKeepAlives: true,
133-
},
134-
},
135-
}
136-
}
137125
return &Service{
138126
metadataURL: metadataURL,
139127
tries: tries,

0 commit comments

Comments
 (0)