diff --git a/cmd/scw/testdata/test-all-usage-lb-backend-create-usage.golden b/cmd/scw/testdata/test-all-usage-lb-backend-create-usage.golden index 7e739142d3..58d0a4c508 100644 --- a/cmd/scw/testdata/test-all-usage-lb-backend-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-lb-backend-create-usage.golden @@ -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 diff --git a/cmd/scw/testdata/test-all-usage-lb-backend-update-healthcheck-usage.golden b/cmd/scw/testdata/test-all-usage-lb-backend-update-healthcheck-usage.golden index e05d30b8eb..843016b2ab 100644 --- a/cmd/scw/testdata/test-all-usage-lb-backend-update-healthcheck-usage.golden +++ b/cmd/scw/testdata/test-all-usage-lb-backend-update-healthcheck-usage.golden @@ -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: diff --git a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go index 92cf57a827..875733a6a8 100644 --- a/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go +++ b/internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go @@ -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" ) diff --git a/internal/namespaces/lb/v1/lb_cli.go b/internal/namespaces/lb/v1/lb_cli.go index 1bd81aa189..581b7e340d 100644 --- a/internal/namespaces/lb/v1/lb_cli.go +++ b/internal/namespaces/lb/v1/lb_cli.go @@ -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`, @@ -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) {