Skip to content

Commit d822cb4

Browse files
authored
fix(lb): change default value for assign_flexible_ip (#3875)
1 parent c051ea1 commit d822cb4

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

cmd/scw/testdata/test-all-usage-lblb-create-usage.golden

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ USAGE:
66
scw lb lb create [arg=value ...]
77

88
ARGS:
9-
[project-id] Project ID to use. If none is passed the default project ID will be used
10-
name=<generated> Name for the Load Balancer
11-
[description] Description for the Load Balancer
12-
[assign-flexible-ip] Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign).
13-
[assign-flexible-ipv6] Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign).
14-
[ip-ids.{index}] List of IP IDs to attach to the Load Balancer
15-
[tags.{index}] List of tags for the Load Balancer
16-
[type=LB-S] Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types (LB-S | LB-GP-M | LB-GP-L)
17-
[ssl-compatibility-level] Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort (ssl_compatibility_level_unknown | ssl_compatibility_level_intermediate | ssl_compatibility_level_modern | ssl_compatibility_level_old)
18-
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
19-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
9+
[project-id] Project ID to use. If none is passed the default project ID will be used
10+
name=<generated> Name for the Load Balancer
11+
[description] Description for the Load Balancer
12+
[assign-flexible-ip=true] Defines whether to automatically assign a flexible public IP to the Load Balancer. Default value is `true` (assign).
13+
[assign-flexible-ipv6=false] Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign).
14+
[ip-ids.{index}] List of IP IDs to attach to the Load Balancer
15+
[tags.{index}] List of tags for the Load Balancer
16+
[type=LB-S] Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types (LB-S | LB-GP-M | LB-GP-L)
17+
[ssl-compatibility-level] Determines the minimal SSL version which needs to be supported on the client side, in an SSL/TLS offloading context. Intermediate is suitable for general-purpose servers with a variety of clients, recommended for almost all systems. Modern is suitable for services with clients that support TLS 1.3 and do not need backward compatibility. Old is compatible with a small number of very old clients and should be used only as a last resort (ssl_compatibility_level_unknown | ssl_compatibility_level_intermediate | ssl_compatibility_level_modern | ssl_compatibility_level_old)
18+
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
19+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | nl-ams-2 | nl-ams-3 | pl-waw-1 | pl-waw-2 | pl-waw-3)
2020

2121
DEPRECATED ARGS:
2222
[ip-id] ID of an existing flexible IP address to attach to the Load Balancer

docs/commands/lb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ scw lb lb create [arg=value ...]
909909
| name | Required<br />Default: `<generated>` | Name for the Load Balancer |
910910
| description | | Description for the Load Balancer |
911911
| ~~ip-id~~ | Deprecated | ID of an existing flexible IP address to attach to the Load Balancer |
912-
| assign-flexible-ip | | Defines whether to automatically assign a flexible public IP to lb. Default value is `false` (do not assign). |
913-
| assign-flexible-ipv6 | | Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign). |
912+
| assign-flexible-ip | Default: `true` | Defines whether to automatically assign a flexible public IP to the Load Balancer. Default value is `true` (assign). |
913+
| assign-flexible-ipv6 | Default: `false` | Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is `false` (do not assign). |
914914
| ip-ids.{index} | | List of IP IDs to attach to the Load Balancer |
915915
| tags.{index} | | List of tags for the Load Balancer |
916916
| type | Default: `LB-S`<br />One of: `LB-S`, `LB-GP-M`, `LB-GP-L` | Load Balancer commercial offer type. Use the Load Balancer types endpoint to retrieve a list of available offer types |

internal/namespaces/lb/v1/lb_cli.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,17 +287,19 @@ func lbLBCreate() *core.Command {
287287
},
288288
{
289289
Name: "assign-flexible-ip",
290-
Short: `Defines whether to automatically assign a flexible public IP to lb. Default value is ` + "`" + `false` + "`" + ` (do not assign).`,
290+
Short: `Defines whether to automatically assign a flexible public IP to the Load Balancer. Default value is ` + "`" + `true` + "`" + ` (assign).`,
291291
Required: false,
292292
Deprecated: false,
293293
Positional: false,
294+
Default: core.DefaultValueSetter("true"),
294295
},
295296
{
296297
Name: "assign-flexible-ipv6",
297298
Short: `Defines whether to automatically assign a flexible public IPv6 to the Load Balancer. Default value is ` + "`" + `false` + "`" + ` (do not assign).`,
298299
Required: false,
299300
Deprecated: false,
300301
Positional: false,
302+
Default: core.DefaultValueSetter("false"),
301303
},
302304
{
303305
Name: "ip-ids.{index}",

0 commit comments

Comments
 (0)