Skip to content

Commit b92f964

Browse files
scaleway-botyfodil
andauthored
feat(webhosting): add addon domains limit to public product (#3367)
Co-authored-by: Yacine Fodil <[email protected]>
1 parent 1e9a072 commit b92f964

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

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.11.6
2525
github.com/opencontainers/go-digest v1.0.0
2626
github.com/pkg/errors v0.9.1
27-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21
27+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230915112452-d153ad293c76
2828
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
2929
github.com/spf13/cobra v1.7.0
3030
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncj
491491
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
492492
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
493493
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
494-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21 h1:yWfiTPwYxB0l5fGMhl/G+liULugVIHD9AU77iNLrURQ=
495-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
494+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230915112452-d153ad293c76 h1:HTPaL3E2wq++7XgM4u7Gq0QxWcUiq6I07Kir0hSKGWo=
495+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21.0.20230915112452-d153ad293c76/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
496496
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
497497
github.com/secure-systems-lab/go-securesystemslib v0.4.0 h1:b23VGrQhTA8cN2CbBw7/FulN9fTtqYUdS5+Oxzt+DUE=
498498
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=

internal/namespaces/webhosting/v1alpha1/testdata/test-list-offer-simple.golden

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ e1c1e6c6-a9e9-11ec-b909-0242ac120002 /webhosting/ecommerce/fr-par € 29.99
2222
"hosting_storage_quota": 0,
2323
"support_included": false,
2424
"v_cpu": 0,
25-
"ram": 0
25+
"ram": 0,
26+
"max_addon_domains": 0
2627
},
2728
"price": {
2829
"currency_code": "EUR",
@@ -45,7 +46,8 @@ e1c1e6c6-a9e9-11ec-b909-0242ac120002 /webhosting/ecommerce/fr-par € 29.99
4546
"hosting_storage_quota": 10,
4647
"support_included": true,
4748
"v_cpu": 1,
48-
"ram": 1
49+
"ram": 1,
50+
"max_addon_domains": 0
4951
},
5052
"price": {
5153
"currency_code": "EUR",
@@ -68,7 +70,8 @@ e1c1e6c6-a9e9-11ec-b909-0242ac120002 /webhosting/ecommerce/fr-par € 29.99
6870
"hosting_storage_quota": 50,
6971
"support_included": true,
7072
"v_cpu": 2,
71-
"ram": 1
73+
"ram": 1,
74+
"max_addon_domains": 0
7275
},
7376
"price": {
7477
"currency_code": "EUR",
@@ -91,7 +94,8 @@ e1c1e6c6-a9e9-11ec-b909-0242ac120002 /webhosting/ecommerce/fr-par € 29.99
9194
"hosting_storage_quota": 100,
9295
"support_included": true,
9396
"v_cpu": 4,
94-
"ram": 2
97+
"ram": 2,
98+
"max_addon_domains": 0
9599
},
96100
"price": {
97101
"currency_code": "EUR",
@@ -114,7 +118,8 @@ e1c1e6c6-a9e9-11ec-b909-0242ac120002 /webhosting/ecommerce/fr-par € 29.99
114118
"hosting_storage_quota": 250,
115119
"support_included": true,
116120
"v_cpu": 8,
117-
"ram": 8
121+
"ram": 8,
122+
"max_addon_domains": 0
118123
},
119124
"price": {
120125
"currency_code": "EUR",

0 commit comments

Comments
 (0)