Skip to content

Commit 48e9b7a

Browse files
feat(webhosting): add create hosting request offer commitment id (#5410)
Co-authored-by: esoulard <esoulard@scaleway.com>
1 parent 4bb697c commit 48e9b7a

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

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
@@ -25,6 +25,7 @@ ARGS:
2525
[auto-config-domain-dns.mail-records] Whether or not to synchronize mail records.
2626
[auto-config-domain-dns.all-records] Whether or not to synchronize all types of records. Takes priority over the other fields.
2727
[auto-config-domain-dns.none] No automatic domain configuration. Users must configure their domain for the Web Hosting to work.
28+
[offer-commitment-id] Offer commitment ID to which the hosting will be engaged
2829
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
2930

3031
FLAGS:

docs/commands/webhosting.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ scw webhosting hosting create [arg=value ...]
745745
| auto-config-domain-dns.mail-records | | Whether or not to synchronize mail records. |
746746
| auto-config-domain-dns.all-records | | Whether or not to synchronize all types of records. Takes priority over the other fields. |
747747
| auto-config-domain-dns.none | | No automatic domain configuration. Users must configure their domain for the Web Hosting to work. |
748+
| offer-commitment-id | | Offer commitment ID to which the hosting will be engaged |
748749
| 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 |
749750

750751

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/moby/buildkit v0.28.0
2525
github.com/moby/go-archive v0.2.0
2626
github.com/opencontainers/go-digest v1.0.0
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260316101207-88e9eba96c38
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260316103241-3ecf8306ce64
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.10.2
3030
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
476476
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
477477
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
478478
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
479-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260316101207-88e9eba96c38 h1:IbWPiRe1pVkz3ePzJ6ZLhCRv36OgxrqjSQ6o2L4gBKg=
480-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260316101207-88e9eba96c38/go.mod h1:WIOH4i4de+u/xOhMGDDv0ZzYukBbRygOaf5tSOJz9zU=
479+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260316103241-3ecf8306ce64 h1:wXpcK+W/EOdVu62G+knMgLHdTrMlmxzkpQkzFy3re9M=
480+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260316103241-3ecf8306ce64/go.mod h1:SKcIU6lqwljcpjOlTnSfMFfURd/XT+08spQyqN9OTWA=
481481
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
482482
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
483483
github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14=

internal/namespaces/webhosting/v1/webhosting_cli.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,13 @@ func webhostingHostingCreate() *core.Command {
15461546
Deprecated: false,
15471547
Positional: false,
15481548
},
1549+
{
1550+
Name: "offer-commitment-id",
1551+
Short: `Offer commitment ID to which the hosting will be engaged`,
1552+
Required: false,
1553+
Deprecated: false,
1554+
Positional: false,
1555+
},
15491556
core.RegionArgSpec(
15501557
scw.RegionFrPar,
15511558
scw.RegionNlAms,

0 commit comments

Comments
 (0)