Skip to content

Conversation

@rahulbabu95
Copy link
Contributor

Description

This change adds the ability in Smee to serve Hook as an ISO file through HTTP and also patch it with all the necessary dynamic information needed to connect with a Tink Server.

Why is this needed

Hook recently added an feature to support building it as an ISO file. This change leverages that feature to be able to serve and patch Hook as an ISO file. This will be needed to be able to get Tinkerbell stack running on L3 without any Layer 2 dependency.

How Has This Been Tested?

Built a custom smee image with above changes, and tested with that image and replacing the smee deployment of Tink stack on a k3d cluster with real hardware. Set the Hardware to boot from Virtual media mount and verified that the hardware was able to boot properly.

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

ISO serving will not be enabled by default in the CLI and users have to explicitly set the 'iso-enabled' flag to make use of the feature. So as such the change will not have any impact on existing users.

@rahulbabu95 rahulbabu95 force-pushed the patch-iso-runtime branch 2 times, most recently from d70fb28 to 0c7f8e1 Compare November 13, 2024 19:29
@codecov
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 29.21348% with 126 lines in your changes missing coverage. Please review.

Project coverage is 49%. Comparing base (00ce18f) to head (e491a35).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/iso/iso.go 31% 98 Missing and 2 partials ⚠️
cmd/smee/main.go 0% 21 Missing ⚠️
internal/backend/kube/error.go 0% 5 Missing ⚠️
Additional details and impacted files
@@         Coverage Diff          @@
##           main   #543    +/-   ##
====================================
- Coverage    51%    49%    -2%     
====================================
  Files        26     27     +1     
  Lines      2757   2935   +178     
====================================
+ Hits       1412   1464    +52     
- Misses     1305   1429   +124     
- Partials     40     42     +2     

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

Signed-off-by: Rahul Ganesh <rahulbabu95@gmail.com>
@jacobweinstock jacobweinstock added the ready-to-merge Signal to Mergify to merge the PR. label Nov 14, 2024
@mergify mergify bot merged commit 2b894eb into tinkerbell:main Nov 14, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants