Skip to content

Commit e291e94

Browse files
authored
feat(lbaas): support for controlling health check TLS verify (#240)
* support for health check tls verify * fix lb svc tests and update fixtures
1 parent 101fabc commit e291e94

13 files changed

Lines changed: 6606 additions & 1419 deletions

upcloud/load_balancer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ type LoadBalancerBackendMember struct {
198198
type LoadBalancerBackendProperties struct {
199199
TimeoutServer int `json:"timeout_server,omitempty"`
200200
TimeoutTunnel int `json:"timeout_tunnel,omitempty"`
201+
HealthCheckTLSVerify *bool `json:"health_check_tls_verify,omitempty"`
201202
HealthCheckType LoadBalancerHealthCheckType `json:"health_check_type,omitempty"`
202203
HealthCheckInterval int `json:"health_check_interval,omitempty"`
203204
HealthCheckFall int `json:"health_check_fall,omitempty"`

upcloud/load_balancer_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ func TestLoadBalancerBackendProperties(t *testing.T) {
507507
&LoadBalancerBackendProperties{
508508
TimeoutServer: 30,
509509
TimeoutTunnel: 3600,
510+
HealthCheckTLSVerify: BoolPtr(false),
510511
HealthCheckType: LoadBalancerHealthCheckTypeHTTP,
511512
HealthCheckInterval: 20,
512513
HealthCheckFall: 3,
@@ -521,6 +522,7 @@ func TestLoadBalancerBackendProperties(t *testing.T) {
521522
"timeout_server": 30,
522523
"timeout_tunnel": 3600,
523524
"health_check_type": "http",
525+
"health_check_tls_verify": false,
524526
"health_check_interval": 20,
525527
"health_check_fall": 3,
526528
"health_check_rise": 3,

upcloud/service/fixtures/loadbalancer.yaml

Lines changed: 416 additions & 155 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancerbackend.yaml

Lines changed: 302 additions & 145 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancerbackendmember.yaml

Lines changed: 327 additions & 170 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancercerticatebundlesandfrontendtlsconfigs.yaml

Lines changed: 271 additions & 192 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancerfrontend.yaml

Lines changed: 532 additions & 193 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancerfrontendrule.yaml

Lines changed: 1070 additions & 33 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancerlabels.yaml

Lines changed: 1252 additions & 38 deletions
Large diffs are not rendered by default.

upcloud/service/fixtures/loadbalancernetworks.yaml

Lines changed: 367 additions & 27 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)