Skip to content

feat(load-balancer): support http timeout-idle annotation#1301

Draft
lukasmetzner wants to merge 2 commits into
mainfrom
feat/lb-support-timeout-idle
Draft

feat(load-balancer): support http timeout-idle annotation#1301
lukasmetzner wants to merge 2 commits into
mainfrom
feat/lb-support-timeout-idle

Conversation

@lukasmetzner

Copy link
Copy Markdown
Contributor

Add the load-balancer.hetzner.cloud/http-timeout-idle annotation to
configure the idle timeout for the client and server side of an HTTP/HTTPS
Load Balancer service.

It is documented as the new duration type (a Go duration string, e.g. 30s).

Closes #1233

Add the `load-balancer.hetzner.cloud/http-timeout-idle` annotation to
configure the idle timeout for the client and server side of an HTTP/HTTPS
Load Balancer service.

It is documented as the new `duration` type (a Go duration string, e.g. `30s`).

Closes #1233
@lukasmetzner
lukasmetzner requested a review from a team as a code owner July 23, 2026 11:50
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.65%. Comparing base (372f3f7) to head (67f5dbb).

Files with missing lines Patch % Lines
internal/hcops/load_balancer.go 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1301      +/-   ##
==========================================
+ Coverage   71.61%   71.65%   +0.04%     
==========================================
  Files          26       26              
  Lines        2776     2787      +11     
==========================================
+ Hits         1988     1997       +9     
- Misses        613      614       +1     
- Partials      175      176       +1     
Flag Coverage Δ
e2e 44.76% <45.45%> (-0.25%) ⬇️
unit 67.99% <81.81%> (+0.05%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@lukasmetzner
lukasmetzner marked this pull request as draft July 23, 2026 11:51
| `load-balancer.hetzner.cloud/uses-proxyprotocol` | `bool` | `false` | `No` | Specifies if the Load Balancer services should use the proxy protocol. |
| `load-balancer.hetzner.cloud/http-cookie-name` | `string` | `-` | `No` | Specifies the cookie name when using HTTP or HTTPS as protocol. |
| `load-balancer.hetzner.cloud/http-cookie-lifetime` | `int` | `-` | `No` | Specifies the lifetime of the HTTP cookie. |
| `load-balancer.hetzner.cloud/http-timeout-idle` | `duration` | `-` | `No` | Specifies the idle timeout for the client and server side. |

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we document the allowed range for this value?

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.

Support timeout_idle in Load Balancer implementation

2 participants