feat: parse nested load balancer label_selector targets#633
Merged
jooola merged 2 commits intohetznercloud:mainfrom Mar 5, 2026
Merged
feat: parse nested load balancer label_selector targets#633jooola merged 2 commits intohetznercloud:mainfrom
label_selector targets#633jooola merged 2 commits intohetznercloud:mainfrom
Conversation
When a load balancer has a label_selector type target, the API returns a nested "targets" array containing the resolved individual server targets with their health statuses. This data was previously discarded. - Add `targets` parameter to `LoadBalancerTarget.__init__` in domain.py - Parse nested targets in `BoundLoadBalancer.__init__` for label_selector targets, creating `LoadBalancerTarget` objects with server, health_status, type, and use_private_ip fields - Add test fixture and test case for nested target parsing https://claude.ai/code/session_018oDf81V2LsgKcFheq7KSRp
label_selector targets
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #633 +/- ##
==========================================
+ Coverage 96.62% 96.72% +0.10%
==========================================
Files 76 76
Lines 4031 4033 +2
==========================================
+ Hits 3895 3901 +6
+ Misses 136 132 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jooola
approved these changes
Mar 5, 2026
jooola
pushed a commit
that referenced
this pull request
Mar 5, 2026
<!-- section-start changelog --> ### Features - parse nested load balancer `label_selector` targets (#633) <!-- section-end changelog --> --- <details> <summary><h4>PR by <a href="https://github.com/apricote/releaser-pleaser">releaser-pleaser</a> 🤖</h4></summary> If you want to modify the proposed release, add you overrides here. You can learn more about the options in the docs. ## Release Notes ### Prefix / Start This will be added to the start of the release notes. ~~~~rp-prefix ~~~~ ### Suffix / End This will be added to the end of the release notes. ~~~~rp-suffix ~~~~ </details> Co-authored-by: Hetzner Cloud Bot <>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a load balancer has a label_selector type target, the API returns a nested "targets" array containing the resolved individual server targets with their health statuses. This data was previously discarded.
targetsparameter toLoadBalancerTarget.__init__in domain.pyBoundLoadBalancer.__init__for label_selector targets, creatingLoadBalancerTargetobjects with server, health_status, type, and use_private_ip fields