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

per machine disable dhcp option: #539

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

jacobweinstock
Copy link
Member

Description

This implements the new Hardware object spec field for being able to disable DHCP on a per Hardware and per interface basis.

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 has Tink API changes needed for
implementing the disableDHCP functionality.

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

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 65.71429% with 12 lines in your changes missing coverage. Please review.

Project coverage is 51%. Comparing base (9231334) to head (16c3026).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
internal/dhcp/handler/reservation/handler.go 0% 10 Missing and 2 partials ⚠️
Additional details and impacted files
@@         Coverage Diff          @@
##           main   #539    +/-   ##
====================================
- Coverage    52%    51%    -1%     
====================================
  Files        26     26            
  Lines      2152   2736   +584     
====================================
+ Hits       1129   1409   +280     
- Misses      986   1287   +301     
- Partials     37     40     +3     

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

If the Hardware object specifies that
DHCP is disabled we don't respond to DHCP
packets.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock merged commit 47e57ed into tinkerbell:main Oct 23, 2024
5 checks passed
@jacobweinstock jacobweinstock deleted the disable-dhcp branch October 23, 2024 19:21
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