We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c65bab2 commit 993c54bCopy full SHA for 993c54b
pkg/ec2metadata/ec2metadata.go
@@ -122,18 +122,6 @@ type NodeMetadata struct {
122
123
// New constructs an instance of the Service client
124
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
137
return &Service{
138
metadataURL: metadataURL,
139
tries: tries,
0 commit comments