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

feat(robot): forward InternalIPs by default on Robot nodes #865

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lukasmetzner
Copy link
Contributor

@lukasmetzner lukasmetzner commented Feb 10, 2025

Whenever a user configures the --node-ip flag, we forward the configured IPs. We validate if the IP already exists as an ExternalIP and does not collide with the configured address family. This improves the Robot support for HCCM, as users can configure private IPs for Robot nodes.

Forwarding only happens during the initialization phase of HCCM and should therefore not break existing clusters.

This feature can be disabled by setting the environment variable ROBOT_FORWARD_INTERNAL_IPS to false.

Whenever a user configures the `--node-ip` flag, we forward the configured IPs without validating them. This should improve Robot support for HCCM, as users now can configure private IPs for Robot nodes, like for example vSwitch IPs.

This forwarding only happens during the initialization phase of HCCM and should therefore not break existing clusters.
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

Attention: Patch coverage is 55.26316% with 17 lines in your changes missing coverage. Please review.

Project coverage is 70.35%. Comparing base (e777d81) to head (83224aa).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
hcloud/instances.go 57.57% 10 Missing and 4 partials ⚠️
internal/config/config.go 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #865      +/-   ##
==========================================
- Coverage   70.69%   70.35%   -0.35%     
==========================================
  Files          31       31              
  Lines        3310     3329      +19     
==========================================
+ Hits         2340     2342       +2     
- Misses        795      807      +12     
- Partials      175      180       +5     

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

Renamed ROBOT_DISABLE_FORWARD_INTERNAL_IPS -> ROBOT_FORWARD_INTERNAL_IPS
@lukasmetzner lukasmetzner changed the title feat(robot): forward InternalIPs by default on Robot nodes. feat(robot): forward InternalIPs by default on Robot nodes Feb 12, 2025
@lukasmetzner lukasmetzner marked this pull request as draft February 12, 2025 17:56
@lukasmetzner lukasmetzner marked this pull request as ready for review February 13, 2025 08:36
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.

2 participants