Skip to content

Commit b95b2e9

Browse files
authored
feat(lb): add access_logs field to frontend (#4938)
1 parent 4572061 commit b95b2e9

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARGS:
1414
[certificate-ids.{index}] List of SSL/TLS certificate IDs to bind to the frontend
1515
[enable-http3] Defines whether to enable HTTP/3 protocol on the frontend
1616
[connection-rate-limit] Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
17+
[enable-access-logs] Defines whether to enable access logs on the frontend
1718
[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)
1819

1920
DEPRECATED ARGS:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARGS:
1414
[certificate-ids.{index}] List of SSL/TLS certificate IDs to bind to the frontend
1515
[enable-http3] Defines whether to enable HTTP/3 protocol on the frontend
1616
[connection-rate-limit] Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second.
17+
[enable-access-logs] Defines whether to enable access logs on the frontend
1718
[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)
1819

1920
DEPRECATED ARGS:

docs/commands/lb.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,7 @@ scw lb frontend create [arg=value ...]
680680
| certificate-ids.{index} | | List of SSL/TLS certificate IDs to bind to the frontend |
681681
| enable-http3 | | Defines whether to enable HTTP/3 protocol on the frontend |
682682
| connection-rate-limit | | Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. |
683+
| enable-access-logs | | Defines whether to enable access logs on the frontend |
683684
| 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 |
684685

685686

@@ -770,6 +771,7 @@ scw lb frontend update <frontend-id ...> [arg=value ...]
770771
| certificate-ids.{index} | | List of SSL/TLS certificate IDs to bind to the frontend |
771772
| enable-http3 | | Defines whether to enable HTTP/3 protocol on the frontend |
772773
| connection-rate-limit | | Rate limit for new connections established on this frontend. Use 0 value to disable, else value is connections per second. |
774+
| enable-access-logs | | Defines whether to enable access logs on the frontend |
773775
| 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 |
774776

775777

internal/namespaces/lb/v1/lb_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,6 +1996,13 @@ func lbFrontendCreate() *core.Command {
19961996
Deprecated: false,
19971997
Positional: false,
19981998
},
1999+
{
2000+
Name: "enable-access-logs",
2001+
Short: `Defines whether to enable access logs on the frontend`,
2002+
Required: false,
2003+
Deprecated: false,
2004+
Positional: false,
2005+
},
19992006
core.ZoneArgSpec(
20002007
scw.ZoneFrPar1,
20012008
scw.ZoneFrPar2,
@@ -2131,6 +2138,13 @@ func lbFrontendUpdate() *core.Command {
21312138
Deprecated: false,
21322139
Positional: false,
21332140
},
2141+
{
2142+
Name: "enable-access-logs",
2143+
Short: `Defines whether to enable access logs on the frontend`,
2144+
Required: false,
2145+
Deprecated: false,
2146+
Positional: false,
2147+
},
21342148
core.ZoneArgSpec(
21352149
scw.ZoneFrPar1,
21362150
scw.ZoneFrPar2,

0 commit comments

Comments
 (0)