diff --git a/cmd/scw/testdata/test-all-usage-webhosting-domain-sync-dns-records-usage.golden b/cmd/scw/testdata/test-all-usage-webhosting-domain-sync-dns-records-usage.golden index e029b1202e..c4a60329c7 100644 --- a/cmd/scw/testdata/test-all-usage-webhosting-domain-sync-dns-records-usage.golden +++ b/cmd/scw/testdata/test-all-usage-webhosting-domain-sync-dns-records-usage.golden @@ -13,6 +13,7 @@ ARGS: [auto-config-domain-dns.web-records] Whether or not to synchronize web records. [auto-config-domain-dns.mail-records] Whether or not to synchronize mail records. [auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields. + [auto-config-domain-dns.none] No automatic domain configuration. Users must configure their domain for the Web Hosting to work. [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) DEPRECATED ARGS: diff --git a/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden b/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden index 7e3f2c0890..74a55189f5 100644 --- a/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-webhosting-hosting-create-usage.golden @@ -23,6 +23,7 @@ ARGS: [auto-config-domain-dns.web-records] Whether or not to synchronize web records. [auto-config-domain-dns.mail-records] Whether or not to synchronize mail records. [auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields. + [auto-config-domain-dns.none] No automatic domain configuration. Users must configure their domain for the Web Hosting to work. [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: diff --git a/docs/commands/webhosting.md b/docs/commands/webhosting.md index f376719c69..ce9959a524 100644 --- a/docs/commands/webhosting.md +++ b/docs/commands/webhosting.md @@ -403,6 +403,7 @@ scw webhosting domain sync-dns-records [arg=value ...] | auto-config-domain-dns.web-records | | Whether or not to synchronize web records. | | auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. | | auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. | +| auto-config-domain-dns.none | | No automatic domain configuration. Users must configure their domain for the Web Hosting to work. | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | @@ -515,6 +516,7 @@ scw webhosting hosting create [arg=value ...] | auto-config-domain-dns.web-records | | Whether or not to synchronize web records. | | auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. | | auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. | +| auto-config-domain-dns.none | | No automatic domain configuration. Users must configure their domain for the Web Hosting to work. | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index 7f0328a63b..466d7ba422 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.13.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250319145910-2e85f595df2a + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250320132958-0f59cae533d0 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.6 diff --git a/go.sum b/go.sum index 96f86c82f5..ea8f7f8c0c 100644 --- a/go.sum +++ b/go.sum @@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250319145910-2e85f595df2a h1:WH07M81Mx2nsB0BpE4jAp4ES9bJaVNcP2WaXYkQb6XA= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250319145910-2e85f595df2a/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250320132958-0f59cae533d0 h1:aqpUaCWx5ta43b9dZv1bMIvUUJTux9Am+S7RmJbiVN8= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250320132958-0f59cae533d0/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= diff --git a/internal/namespaces/webhosting/v1/webhosting_cli.go b/internal/namespaces/webhosting/v1/webhosting_cli.go index e5e4b940cd..0316313c3f 100644 --- a/internal/namespaces/webhosting/v1/webhosting_cli.go +++ b/internal/namespaces/webhosting/v1/webhosting_cli.go @@ -819,6 +819,13 @@ func webhostingDomainSyncDNSRecords() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "auto-config-domain-dns.none", + Short: `No automatic domain configuration. Users must configure their domain for the Web Hosting to work.`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { @@ -1006,6 +1013,13 @@ func webhostingHostingCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "auto-config-domain-dns.none", + Short: `No automatic domain configuration. Users must configure their domain for the Web Hosting to work.`, + Required: false, + Deprecated: false, + Positional: false, + }, core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw), }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {