Skip to content

Commit b090264

Browse files
fix(webhosting): add dns autoconfig none option (#4602)
Co-authored-by: Jonathan R. <[email protected]>
1 parent e3c9da6 commit b090264

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

cmd/scw/testdata/test-all-usage-webhosting-domain-sync-dns-records-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ARGS:
1313
[auto-config-domain-dns.web-records] Whether or not to synchronize web records.
1414
[auto-config-domain-dns.mail-records] Whether or not to synchronize mail records.
1515
[auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields.
16+
[auto-config-domain-dns.none] No automatic domain configuration. Users must configure their domain for the Web Hosting to work.
1617
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1718

1819
DEPRECATED ARGS:

cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ARGS:
2323
[auto-config-domain-dns.web-records] Whether or not to synchronize web records.
2424
[auto-config-domain-dns.mail-records] Whether or not to synchronize mail records.
2525
[auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields.
26+
[auto-config-domain-dns.none] No automatic domain configuration. Users must configure their domain for the Web Hosting to work.
2627
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2728

2829
FLAGS:

docs/commands/webhosting.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ scw webhosting domain sync-dns-records [arg=value ...]
403403
| auto-config-domain-dns.web-records | | Whether or not to synchronize web records. |
404404
| auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. |
405405
| auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. |
406+
| auto-config-domain-dns.none | | No automatic domain configuration. Users must configure their domain for the Web Hosting to work. |
406407
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
407408

408409

@@ -515,6 +516,7 @@ scw webhosting hosting create [arg=value ...]
515516
| auto-config-domain-dns.web-records | | Whether or not to synchronize web records. |
516517
| auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. |
517518
| auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. |
519+
| auto-config-domain-dns.none | | No automatic domain configuration. Users must configure their domain for the Web Hosting to work. |
518520
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
519521

520522

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/mattn/go-isatty v0.0.20
2626
github.com/moby/buildkit v0.13.2
2727
github.com/opencontainers/go-digest v1.0.0
28-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250319145910-2e85f595df2a
28+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250320132958-0f59cae533d0
2929
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3030
github.com/spf13/cobra v1.9.1
3131
github.com/spf13/pflag v1.0.6

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz
462462
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
463463
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
464464
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
465-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250319145910-2e85f595df2a h1:WH07M81Mx2nsB0BpE4jAp4ES9bJaVNcP2WaXYkQb6XA=
466-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250319145910-2e85f595df2a/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
465+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250320132958-0f59cae533d0 h1:aqpUaCWx5ta43b9dZv1bMIvUUJTux9Am+S7RmJbiVN8=
466+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250320132958-0f59cae533d0/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
467467
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
468468
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
469469
github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA=

internal/namespaces/webhosting/v1/webhosting_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,13 @@ func webhostingDomainSyncDNSRecords() *core.Command {
819819
Deprecated: false,
820820
Positional: false,
821821
},
822+
{
823+
Name: "auto-config-domain-dns.none",
824+
Short: `No automatic domain configuration. Users must configure their domain for the Web Hosting to work.`,
825+
Required: false,
826+
Deprecated: false,
827+
Positional: false,
828+
},
822829
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
823830
},
824831
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
@@ -1006,6 +1013,13 @@ func webhostingHostingCreate() *core.Command {
10061013
Deprecated: false,
10071014
Positional: false,
10081015
},
1016+
{
1017+
Name: "auto-config-domain-dns.none",
1018+
Short: `No automatic domain configuration. Users must configure their domain for the Web Hosting to work.`,
1019+
Required: false,
1020+
Deprecated: false,
1021+
Positional: false,
1022+
},
10091023
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),
10101024
},
10111025
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)