Skip to content

Commit 6de8d9e

Browse files
feat: update generated cli (#1763)
Co-authored-by: Rémy Léone <[email protected]>
1 parent dd0fcd3 commit 6de8d9e

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

cmd/scw/testdata/test-all-usage-lb-backend-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ARGS:
2424
[health-check.port]
2525
[health-check.check-timeout]
2626
[health-check.check-delay]
27+
[health-check.check-send-proxy] It defines whether the healthcheck should be done considering the proxy protocol
2728
lb-id Load balancer ID
2829
server-ip.{index} Backend server IP addresses list (IPv4 or IPv6)
2930
[timeout-server] Maximum server connection inactivity time

cmd/scw/testdata/test-all-usage-lb-backend-update-healthcheck-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ARGS:
1919
[https-config.uri]
2020
[https-config.method]
2121
[https-config.code]
22+
[check-send-proxy] It defines whether the healthcheck should be done considering the proxy protocol
2223
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2324

2425
FLAGS:

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99

1010
"github.com/scaleway/scaleway-cli/internal/core"
11-
applesilicon "github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
11+
"github.com/scaleway/scaleway-sdk-go/api/applesilicon/v1alpha1"
1212
"github.com/scaleway/scaleway-sdk-go/scw"
1313
)
1414

internal/namespaces/lb/v1/lb_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,13 @@ func lbBackendCreate() *core.Command {
790790
Deprecated: false,
791791
Positional: false,
792792
},
793+
{
794+
Name: "health-check.check-send-proxy",
795+
Short: `It defines whether the healthcheck should be done considering the proxy protocol`,
796+
Required: false,
797+
Deprecated: false,
798+
Positional: false,
799+
},
793800
{
794801
Name: "lb-id",
795802
Short: `Load balancer ID`,
@@ -1237,6 +1244,13 @@ func lbBackendUpdateHealthcheck() *core.Command {
12371244
Deprecated: false,
12381245
Positional: false,
12391246
},
1247+
{
1248+
Name: "check-send-proxy",
1249+
Short: `It defines whether the healthcheck should be done considering the proxy protocol`,
1250+
Required: false,
1251+
Deprecated: false,
1252+
Positional: false,
1253+
},
12401254
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
12411255
},
12421256
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)