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

Set the default CLI IP for use based on a give interface name: #544

Merged

Conversation

jacobweinstock
Copy link
Member

Description

This allows just specifying an interface and letting the first IP on that interface be used for all CLI flag defaults.

Why is this needed

Fixes: #

How Has This Been Tested?

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

This allows just specifying an interface and letting
the first IP on that interface be used for all CLI
flag defaults.

Signed-off-by: Jacob Weinstock <[email protected]>
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

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

Project coverage is 50%. Comparing base (ad5ed6f) to head (21acec3).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
cmd/smee/flag.go 0% 20 Missing and 1 partial ⚠️
Additional details and impacted files
@@         Coverage Diff         @@
##           main   #544   +/-   ##
===================================
- Coverage    51%    50%   -1%     
===================================
  Files        26     26           
  Lines      2736   2757   +21     
===================================
- Hits       1409   1396   -13     
- Misses     1287   1317   +30     
- Partials     40     44    +4     

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

Add section on CLI and env vars and the one off
note about `SMEE_PUBLIC_IP_INTERFACE`.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock changed the title Select the IP for use based on a give interface name: Set the default CLI IP for use based on a give interface name: Nov 8, 2024
@jacobweinstock jacobweinstock merged commit abd9a80 into tinkerbell:main Nov 8, 2024
4 of 5 checks passed
@jacobweinstock jacobweinstock deleted the auto-detect-with-interface branch November 8, 2024 19:23
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.

1 participant