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

Restore AWS node-name support and add IMDSv2 support #7343

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

brandond
Copy link
Member

@brandond brandond commented Nov 26, 2024

Proposed Changes

Types of Changes

Revert / enhancement

Verification

  • Start node with --cloud-provider-name=aws on EC2; note that node name is properly set and kubelet does not crash due to --cloud-provider=aws being passed in kubelet args.
  • Start node with --node-name-from-cloud-provider-metadata on EC2; note that node name is properly set.
  • Start node with either of the above on EC2 with IMDSv2 required; note that node name is properly set.

Testing

Linked Issues

User-Facing Change


Further Comments

@brandond brandond requested a review from a team as a code owner November 26, 2024 21:47
@codecov-commenter
Copy link

codecov-commenter commented Nov 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 73 lines in your changes missing coverage. Please review.

Project coverage is 23.23%. Comparing base (f82b4c0) to head (4cc40ce).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/rke2/rke2.go 0.00% 43 Missing ⚠️
pkg/rke2/rke2_linux.go 0.00% 29 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7343      +/-   ##
==========================================
- Coverage   23.70%   23.23%   -0.48%     
==========================================
  Files          33       33              
  Lines        3392     3461      +69     
==========================================
  Hits          804      804              
- Misses       2541     2609      +68     
- Partials       47       48       +1     
Flag Coverage Δ
inttests 8.81% <0.00%> (-0.18%) ⬇️
unittests 16.51% <0.00%> (-0.34%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@brandond brandond force-pushed the restore-aws-hostname branch 2 times, most recently from d6ed8af to 030b9d2 Compare November 26, 2024 22:03
For now, the new flag is automatically set when cloud-provider-name=aws, but this will be removed in the future following our normal deprecation timeline.

This also adds IMDSv2 support, and support for setting the hostname on windows.

Signed-off-by: Brad Davidson <[email protected]>
@brandond brandond force-pushed the restore-aws-hostname branch from 030b9d2 to 4cc40ce Compare November 26, 2024 22:27
@brandond brandond merged commit de8240a into rancher:master Nov 27, 2024
8 checks passed
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.

4 participants