Skip to content

🐛 Fix enabling IP address logic for HCloud #313

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

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

janiskemper
Copy link
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:
Currently, the user can only enable/disable IPv4 and IPv6 if there is no private network. However, since the enabling/disabling is independent of the public/private net, we remove this if clause.

To make sure that users don't disable the IPv4 if there is no private net, we always enable it in that case. This is necessary for Hetzner load balancers, as they can only work with IPv4 of HCloud servers.

Which issue(s) this PR fixes:
Fixes #312

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

@janiskemper janiskemper requested a review from batistein October 13, 2022 14:27
Copy link
Contributor

@batistein batistein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

batistein
batistein previously approved these changes Oct 13, 2022
Currently, the user can only enable/disable IPv4 and IPv6 if there is no
private network. However, since the enabling/disabling is independent of
the public/private net, we remove this if clause.

To make sure that users don't disable the IPv4 if there is no private
net, we always enable it in that case. This is necessary for Hetzner
load balancers, as they can only work with IPv4 of HCloud servers.

Fix #312
@janiskemper janiskemper merged commit fd8069e into main Oct 13, 2022
@janiskemper janiskemper deleted the fix/enable-ip-hcloud branch October 13, 2022 16:16
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.

Public IPv4 network settings for machine templates apply incorrectly
2 participants