Skip to content

Conversation

phm07
Copy link
Contributor

@phm07 phm07 commented Sep 22, 2025

A new ip_range attribute was introduced into the API (Changelog). This PR implements new arguments to allow setting this property when attaching Servers or Load Balancers to a Network.

@phm07 phm07 self-assigned this Sep 22, 2025
@phm07 phm07 requested a review from a team as a code owner September 22, 2025 11:48
@phm07
Copy link
Contributor Author

phm07 commented Sep 22, 2025

TODO: add e2e tests as well

Copy link

codecov bot commented Sep 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.35%. Comparing base (73b208f) to head (9984b5a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1164      +/-   ##
==========================================
+ Coverage   70.33%   70.35%   +0.02%     
==========================================
  Files         245      245              
  Lines       10772    10782      +10     
==========================================
+ Hits         7576     7586      +10     
  Misses       2509     2509              
  Partials      687      687              
Flag Coverage Δ
e2e 51.92% <60.00%> (+0.02%) ⬆️
unit 64.09% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines 30 to +31
cmd.Flags().IP("ip", nil, "IP address to assign to the Load Balancer (auto-assigned if omitted)")
cmd.Flags().IPNet("ip-range", net.IPNet{}, "IP range in CIDR block notation of the subnet to attach to")
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to update both docstrings.

ip-range would also fit the (auto-assigned if omitted) case, if ip is not provided.

In the API you can specify one of them, both, or none.

Comment on lines 30 to +31
cmd.Flags().IP("ip", nil, "IP address to assign to the Server (auto-assigned if omitted)")
cmd.Flags().IPNet("ip-range", net.IPNet{}, "IP range in CIDR block notation of the subnet to attach to")
Copy link
Contributor

Choose a reason for hiding this comment

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

Same docstring adjustment as for Load Balancers.

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.

3 participants