Skip to content

feat: support IMDS v2 default for ecs ram role #116

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

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

yndu13
Copy link
Collaborator

@yndu13 yndu13 commented Sep 11, 2024

You need to complete
  • unit tests and/or feature tests
  • documentation is changed or added

@codecov-commenter
Copy link

codecov-commenter commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.93%. Comparing base (af7c74d) to head (4b03f70).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
- Coverage   98.93%   98.93%   -0.01%     
==========================================
  Files          30       30              
  Lines        2064     2061       -3     
==========================================
- Hits         2042     2039       -3     
  Misses         12       12              
  Partials       10       10              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yndu13 yndu13 force-pushed the disableIMDSv1 branch 2 times, most recently from d3430cd to 5de6c12 Compare September 11, 2024 11:19
if err != nil {
return nil, err
}
if metadataToken != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

getMetadataToken 应该抛错吧,如果为空字符串的话

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

getMetadataToken中,如果disableIMDSv1开启了,才会抛错,否则忽略报错走v1

@JacksonTian
Copy link
Contributor

覆盖率跌了。

@JacksonTian JacksonTian merged commit f2abf11 into master Sep 12, 2024
12 checks passed
@JacksonTian JacksonTian deleted the disableIMDSv1 branch September 12, 2024 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants