Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do Not Try To Retry For IMDS V1 #64

Conversation

sethAmazon
Copy link

Description:
Was not calling imdsv1 when retryer was enabled.

Link to tracking Issue:
N/A

Testing:
Tried using the private agent.

Documentation:
N/A

@@ -64,41 +63,23 @@ func GetHostInfo(logger *zap.Logger) (hostInfo *HostInfo) {
return
}

ctx, cancel := context.WithTimeout(context.Background(), 2*override.TimePerCall)
defer cancel()
meta := ec2metadata.New(sess)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted this back to the original state before my changes. @adam-mateen request to not change datadog.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could not revert datadog go.mod/sum bc it takes in the override from the connector

@sethAmazon sethAmazon force-pushed the do-not-retry-for-imdsv1-allow branch from eee7862 to 376fea6 Compare July 28, 2023 20:11
@sethAmazon
Copy link
Author

Could not revert datadog go.mod/sum bc it takes in the override from the connector

@sethAmazon sethAmazon force-pushed the do-not-retry-for-imdsv1-allow branch from 376fea6 to cc874ae Compare July 28, 2023 20:31
@sethAmazon sethAmazon merged commit e032a05 into amazon-contributing:aws-cwa-dev Jul 31, 2023
72 of 73 checks passed
@sethAmazon sethAmazon deleted the do-not-retry-for-imdsv1-allow branch July 31, 2023 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants