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

Add auto discovery of trusted proxies in Kubernetes, relays and giaddr fix: #379

Merged

Conversation

jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Dec 13, 2023

Description

They will eliminate issues from users having to determine the trusted proxies. We've seen issues where the command we provided in the Helm chart doesn't accurately get the pod CIDRs from a cluster. Incorporating this into the Helm chart was tried, but ultimately not possible without extra ordinary effort and a lot of unneeded code to maintain. This functionality can be disabled if desired. By default we run auto discovery.

This will help simplify the deployment of Smee in the Helm Chart.

Also, move go.mod to Go 1.21. This is because when developing with Go 1.21 and go mod tidy will update the go.mod file.

Dependency updates for tinkerbell/dhcp provide a fix for dhcp relays and the giaddr.

Why is this needed

Fixes: #382

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

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (5d3ede1) 28% compared to head (4bdee41) 30%.

Files Patch % Lines
cmd/smee/backend.go 50% 21 Missing and 4 partials ⚠️
cmd/smee/main.go 0% 9 Missing ⚠️
Additional details and impacted files
@@         Coverage Diff         @@
##           main   #379   +/-   ##
===================================
+ Coverage    28%    30%   +2%     
===================================
  Files         5      5           
  Lines       474    526   +52     
===================================
+ Hits        135    161   +26     
- Misses      331    353   +22     
- Partials      8     12    +4     

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

@jacobweinstock jacobweinstock force-pushed the auto-discover-trusted-proxies branch 2 times, most recently from 19cbd4b to 1f09567 Compare December 14, 2023 16:19
They will eliminate issues from users having to
determine the trusted proxies. This functionality can
be disabled if desired. By default we run auto discovery.

This will help simplify the deployment of Smee in the Helm
Chart.

Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Signed-off-by: Jacob Weinstock <[email protected]>
Both have fixes. dhcp has the giaddr fix.

Signed-off-by: Jacob Weinstock <[email protected]>
@jacobweinstock jacobweinstock changed the title Add auto discovery of trusted proxies in Kubernetes: Add auto discovery of trusted proxies in Kubernetes, relays and giaddr fix: Dec 15, 2023
@jacobweinstock jacobweinstock merged commit ccc2c65 into tinkerbell:main Dec 15, 2023
5 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.

smee/dhcprelay is broadcasting DHCPOFFER instead of unicasting in an L3 environment
1 participant