Skip to content

Commit

Permalink
feat: update generated cli (#2448)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot authored Aug 11, 2022
1 parent 8c24f35 commit e8b2b35
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ARGS:
version=latest The Kubernetes version of the cluster
cni=cilium The Container Network Interface (CNI) plugin that will run in the cluster (unknown_cni | cilium | calico | weave | flannel | kilo)
pools.{index}.name The name of the pool
pools.{index}.node-type The node type is the type of Scaleway Instance wanted for the pool
pools.{index}.node-type The node type is the type of Scaleway Instance wanted for the pool, nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST)
[pools.{index}.placement-group-id] The placement group ID in which all the nodes of the pool will be created
[pools.{index}.autoscaling] The enablement of the autoscaling feature for the pool
pools.{index}.size The size (number of nodes) of the pool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ EXAMPLES:
ARGS:
cluster-id The ID of the cluster in which the pool will be created
name=<generated> The name of the pool
node-type=DEV1-M The node type is the type of Scaleway Instance wanted for the pool
node-type=DEV1-M The node type is the type of Scaleway Instance wanted for the pool, nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST)
[placement-group-id] The placement group ID in which all the nodes of the pool will be created
[autoscaling] The enablement of the autoscaling feature for the pool
size=1 The size (number of nodes) of the pool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads.
A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads. Listing of read replicas is available in the instance response object.

USAGE:
scw rdb read-replica <command>
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ scw k8s cluster create [arg=value ...]
| ~~enable-dashboard~~ | Deprecated | The enablement of the Kubernetes Dashboard in the cluster |
| ~~ingress~~ | Deprecated<br />One of: `unknown_ingress`, `none`, `nginx`, `traefik`, `traefik2` | The Ingress Controller that will run in the cluster |
| pools.{index}.name | Required | The name of the pool |
| pools.{index}.node-type | Required | The node type is the type of Scaleway Instance wanted for the pool |
| pools.{index}.node-type | Required | The node type is the type of Scaleway Instance wanted for the pool, nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST) |
| pools.{index}.placement-group-id | | The placement group ID in which all the nodes of the pool will be created |
| pools.{index}.autoscaling | | The enablement of the autoscaling feature for the pool |
| pools.{index}.size | Required | The size (number of nodes) of the pool |
Expand Down Expand Up @@ -760,7 +760,7 @@ scw k8s pool create [arg=value ...]
|------|---|-------------|
| cluster-id | Required | The ID of the cluster in which the pool will be created |
| name | Required<br />Default: `<generated>` | The name of the pool |
| node-type | Required<br />Default: `DEV1-M` | The node type is the type of Scaleway Instance wanted for the pool |
| node-type | Required<br />Default: `DEV1-M` | The node type is the type of Scaleway Instance wanted for the pool, nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST) |
| placement-group-id | | The placement group ID in which all the nodes of the pool will be created |
| autoscaling | | The enablement of the autoscaling feature for the pool |
| size | Required<br />Default: `1` | The size (number of nodes) of the pool |
Expand Down
2 changes: 1 addition & 1 deletion docs/commands/rdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ scw rdb privilege set [arg=value ...]

## Read replica management

A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads.
A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads. Listing of read replicas is available in the instance response object.



Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/kubernetes-client/go-base v0.0.0-20190205182333-3d0e39759d98
github.com/mattn/go-colorable v0.1.12
github.com/mattn/go-isatty v0.0.14
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220804074940-36f0995dd5b3
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220809090108-bececde68f13
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220804074940-36f0995dd5b3 h1:QhrBPIfq67DwrIcs180KXzqe8xc3fx1ivR2BYlj1M3Y=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220804074940-36f0995dd5b3/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220809090108-bececde68f13 h1:0Bzup92mxJ766nIVxvSWlX7oJh27AA+mvfBsKDblitY=
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.9.0.20220809090108-bececde68f13/go.mod h1:fCa7OJZ/9DRTnOKmxvT6pn+LPWUptQAmHF/SBJUGEcg=
github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ=
github.com/sergi/go-diff v1.2.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
Expand Down
4 changes: 2 additions & 2 deletions internal/namespaces/k8s/v1/k8s_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func k8sClusterCreate() *core.Command {
},
{
Name: "pools.{index}.node-type",
Short: `The node type is the type of Scaleway Instance wanted for the pool`,
Short: `The node type is the type of Scaleway Instance wanted for the pool, nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST)`,
Required: true,
Deprecated: false,
Positional: false,
Expand Down Expand Up @@ -1228,7 +1228,7 @@ func k8sPoolCreate() *core.Command {
},
{
Name: "node-type",
Short: `The node type is the type of Scaleway Instance wanted for the pool`,
Short: `The node type is the type of Scaleway Instance wanted for the pool, nodes with insufficient memory are not eligible (DEV1-S, PLAY2-PICO, STARDUST)`,
Required: true,
Deprecated: false,
Positional: false,
Expand Down
2 changes: 1 addition & 1 deletion internal/namespaces/rdb/v1/rdb_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func rdbSnapshot() *core.Command {
func rdbReadReplica() *core.Command {
return &core.Command{
Short: `Read replica management`,
Long: `A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads.
Long: `A read replica is a live copy of the main database instance only available for reading. Read replica allows you to scale your database instance for read-heavy database workloads. Read replicas can also be used for Business Intelligence workloads. Listing of read replicas is available in the instance response object.
`,
Namespace: "rdb",
Resource: "read-replica",
Expand Down

0 comments on commit e8b2b35

Please sign in to comment.