Skip to content

Commit ed7a5fa

Browse files
authored
feat(product-catalog): add support for open_search (#5733)
1 parent fd39a52 commit ed7a5fa

11 files changed

Lines changed: 12 additions & 17 deletions

cmd/scw/testdata/test-all-usage-product-catalog-product-list-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ USAGE:
66
scw product-catalog product list [arg=value ...]
77

88
ARGS:
9-
[product-types.{index}] The list of filtered product categories. (unknown_product_type | instance | apple_silicon | elastic_metal | dedibox | block_storage | object_storage | managed_inference | generative_apis | load_balancer | secret_manager | key_manager | managed_redis_database | kubernetes | managed_relational_database | managed_mongodb | serverless_functions | serverless_containers | serverless_jobs | apache_kafka)
9+
[product-types.{index}] The list of filtered product categories. (unknown_product_type | instance | apple_silicon | elastic_metal | dedibox | block_storage | object_storage | managed_inference | generative_apis | load_balancer | secret_manager | key_manager | managed_redis_database | kubernetes | managed_relational_database | managed_mongodb | serverless_functions | serverless_containers | serverless_jobs | apache_kafka | open_search)
1010
[global] Filter global products.
1111
[region] Filter products by region.
1212
[zone] Filter products by zone.

docs/commands/product-catalog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ scw product-catalog product list [arg=value ...]
2828

2929
| Name | | Description |
3030
|------|---|-------------|
31-
| product-types.{index} | One of: `unknown_product_type`, `instance`, `apple_silicon`, `elastic_metal`, `dedibox`, `block_storage`, `object_storage`, `managed_inference`, `generative_apis`, `load_balancer`, `secret_manager`, `key_manager`, `managed_redis_database`, `kubernetes`, `managed_relational_database`, `managed_mongodb`, `serverless_functions`, `serverless_containers`, `serverless_jobs`, `apache_kafka` | The list of filtered product categories. |
31+
| product-types.{index} | One of: `unknown_product_type`, `instance`, `apple_silicon`, `elastic_metal`, `dedibox`, `block_storage`, `object_storage`, `managed_inference`, `generative_apis`, `load_balancer`, `secret_manager`, `key_manager`, `managed_redis_database`, `kubernetes`, `managed_relational_database`, `managed_mongodb`, `serverless_functions`, `serverless_containers`, `serverless_jobs`, `apache_kafka`, `open_search` | The list of filtered product categories. |
3232
| global | | Filter global products. |
3333
| region | | Filter products by region. |
3434
| zone | | Filter products by zone. |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/moby/moby/client v0.5.0
2828
github.com/modelcontextprotocol/go-sdk v1.6.1
2929
github.com/opencontainers/go-digest v1.0.0
30-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260618090426-c6672b4c0eb5
30+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260619073511-6ed1f8ff6436
3131
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3232
github.com/spf13/cobra v1.10.2
3333
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
475475
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
476476
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
477477
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
478-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260618090426-c6672b4c0eb5 h1:qchgDXlQZasvQVCN0Sm603SKtTTYuKbiDZ7TicEtOms=
479-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260618090426-c6672b4c0eb5/go.mod h1:Q02gKOXqKfaCTpImuDgOLzlGin79ZoxxKKEhXHKSrPw=
478+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260619073511-6ed1f8ff6436 h1:XWBwCjzLGCJHq/aAaqpPaJNAnwLlo5Ws5AMvPqsfHq4=
479+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260619073511-6ed1f8ff6436/go.mod h1:Q02gKOXqKfaCTpImuDgOLzlGin79ZoxxKKEhXHKSrPw=
480480
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
481481
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
482482
github.com/secure-systems-lab/go-securesystemslib v0.11.0 h1:iuCR9kcMFD4QurdKrGvPLoKZLv9YvwPYVr0473BdtFs=

internal/namespaces/k8s/v1/testdata/test-pool-remove-label-remove-existing.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RootVolumeType l_ssd
1919
RootVolumeSize 40 GB
2020
PublicIPDisabled false
2121
SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957
22-
PrivateNetworkID -
2322
Region fr-par
2423

2524
Upgrade Policy:
@@ -65,6 +64,6 @@ KEY VALUE EFFECT
6564
"labels": {},
6665
"taints": [],
6766
"startup_taints": [],
68-
"private_network_id": "",
67+
"private_network_id": null,
6968
"region": "fr-par"
7069
}

internal/namespaces/k8s/v1/testdata/test-pool-remove-startup-taint-remove-existing.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RootVolumeType l_ssd
1919
RootVolumeSize 40 GB
2020
PublicIPDisabled false
2121
SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957
22-
PrivateNetworkID -
2322
Region fr-par
2423

2524
Upgrade Policy:
@@ -65,6 +64,6 @@ KEY VALUE EFFECT
6564
"labels": {},
6665
"taints": [],
6766
"startup_taints": [],
68-
"private_network_id": "",
67+
"private_network_id": null,
6968
"region": "fr-par"
7069
}

internal/namespaces/k8s/v1/testdata/test-pool-remove-taint-remove-existing.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RootVolumeType l_ssd
1919
RootVolumeSize 40 GB
2020
PublicIPDisabled false
2121
SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957
22-
PrivateNetworkID -
2322
Region fr-par
2423

2524
Upgrade Policy:
@@ -65,6 +64,6 @@ KEY VALUE EFFECT
6564
"labels": {},
6665
"taints": [],
6766
"startup_taints": [],
68-
"private_network_id": "",
67+
"private_network_id": null,
6968
"region": "fr-par"
7069
}

internal/namespaces/k8s/v1/testdata/test-pool-set-label-set-empty.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RootVolumeType l_ssd
1919
RootVolumeSize 40 GB
2020
PublicIPDisabled false
2121
SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957
22-
PrivateNetworkID -
2322
Region fr-par
2423

2524
Upgrade Policy:
@@ -67,6 +66,6 @@ KEY VALUE EFFECT
6766
},
6867
"taints": [],
6968
"startup_taints": [],
70-
"private_network_id": "",
69+
"private_network_id": null,
7170
"region": "fr-par"
7271
}

internal/namespaces/k8s/v1/testdata/test-pool-set-startup-taint-set-empty.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RootVolumeType l_ssd
1919
RootVolumeSize 40 GB
2020
PublicIPDisabled false
2121
SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957
22-
PrivateNetworkID -
2322
Region fr-par
2423

2524
Upgrade Policy:
@@ -72,6 +71,6 @@ foo bar NoSchedule
7271
"effect": "NoSchedule"
7372
}
7473
],
75-
"private_network_id": "",
74+
"private_network_id": null,
7675
"region": "fr-par"
7776
}

internal/namespaces/k8s/v1/testdata/test-pool-set-taint-set-empty.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ RootVolumeType l_ssd
1919
RootVolumeSize 40 GB
2020
PublicIPDisabled false
2121
SecurityGroupID 8bcdc1ce-cda4-4e8f-859f-2aa0aa86e957
22-
PrivateNetworkID -
2322
Region fr-par
2423

2524
Upgrade Policy:
@@ -72,6 +71,6 @@ KEY VALUE EFFECT
7271
}
7372
],
7473
"startup_taints": [],
75-
"private_network_id": "",
74+
"private_network_id": null,
7675
"region": "fr-par"
7776
}

0 commit comments

Comments
 (0)