Skip to content

Commit f04cf14

Browse files
feat(lb): enable devtools generation for path_begin new route feature (#4712)
Co-authored-by: Laure-di <[email protected]>
1 parent ea79eb4 commit f04cf14

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[match.sni] Server Name Indication (SNI) value to match
1212
[match.host-header] HTTP host header to match
1313
[match.match-subdomains] If true, all subdomains will match
14+
[match.path-begin] Path begin value to match
1415
[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)
1516

1617
FLAGS:

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

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[match.sni] Server Name Indication (SNI) value to match
1212
[match.host-header] HTTP host header to match
1313
[match.match-subdomains] If true, all subdomains will match
14+
[match.path-begin] Path begin value to match
1415
[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)
1516

1617
FLAGS:

docs/commands/lb.md

+2
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,7 @@ scw lb route create [arg=value ...]
12041204
| match.sni | | Server Name Indication (SNI) value to match |
12051205
| match.host-header | | HTTP host header to match |
12061206
| match.match-subdomains | | If true, all subdomains will match |
1207+
| match.path-begin | | Path begin value to match |
12071208
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
12081209

12091210

@@ -1289,6 +1290,7 @@ scw lb route update <route-id ...> [arg=value ...]
12891290
| match.sni | | Server Name Indication (SNI) value to match |
12901291
| match.host-header | | HTTP host header to match |
12911292
| match.match-subdomains | | If true, all subdomains will match |
1293+
| match.path-begin | | Path begin value to match |
12921294
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `nl-ams-2`, `nl-ams-3`, `pl-waw-1`, `pl-waw-2`, `pl-waw-3` | Zone to target. If none is passed will use default zone from the config |
12931295

12941296

internal/namespaces/lb/v1/lb_cli.go

+14
Original file line numberDiff line numberDiff line change
@@ -2304,6 +2304,13 @@ func lbRouteCreate() *core.Command {
23042304
Deprecated: false,
23052305
Positional: false,
23062306
},
2307+
{
2308+
Name: "match.path-begin",
2309+
Short: `Path begin value to match`,
2310+
Required: false,
2311+
Deprecated: false,
2312+
Positional: false,
2313+
},
23072314
core.ZoneArgSpec(
23082315
scw.ZoneFrPar1,
23092316
scw.ZoneFrPar2,
@@ -2410,6 +2417,13 @@ func lbRouteUpdate() *core.Command {
24102417
Deprecated: false,
24112418
Positional: false,
24122419
},
2420+
{
2421+
Name: "match.path-begin",
2422+
Short: `Path begin value to match`,
2423+
Required: false,
2424+
Deprecated: false,
2425+
Positional: false,
2426+
},
24132427
core.ZoneArgSpec(
24142428
scw.ZoneFrPar1,
24152429
scw.ZoneFrPar2,

0 commit comments

Comments
 (0)