Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ARGS:
[health-check.port]
[health-check.check-timeout]
[health-check.check-delay]
[health-check.check-send-proxy] It defines whether the healthcheck should be done considering the proxy protocol
lb-id Load balancer ID
server-ip.{index} Backend server IP addresses list (IPv4 or IPv6)
[timeout-server] Maximum server connection inactivity time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ARGS:
[https-config.uri]
[https-config.method]
[https-config.code]
[check-send-proxy] It defines whether the healthcheck should be done considering the proxy protocol
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)

FLAGS:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"reflect"

"github.com/scaleway/scaleway-cli/internal/core"
applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
"github.com/scaleway/scaleway-sdk-go/scw"
)

Expand Down
14 changes: 14 additions & 0 deletions internal/namespaces/lb/v1/lb_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,13 @@ func lbBackendCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "health-check.check-send-proxy",
Short: `It defines whether the healthcheck should be done considering the proxy protocol`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "lb-id",
Short: `Load balancer ID`,
Expand Down Expand Up @@ -1237,6 +1244,13 @@ func lbBackendUpdateHealthcheck() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "check-send-proxy",
Short: `It defines whether the healthcheck should be done considering the proxy protocol`,
Required: false,
Deprecated: false,
Positional: false,
},
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down