Skip to content

Commit

Permalink
Adjustments after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopalet committed Feb 6, 2024
1 parent 94268cd commit 0301780
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/stackit_logme_instance_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit logme instance create [flags]

```
Create an LogMe instance with name "my-instance" and specify plan by name and version
$ stackit logme instance create --name my-instance --plan-name stackit-logme-1.2.10-replica --version 3.10
$ stackit logme instance create --name my-instance --plan-name stackit-logme2-1.2.50-replica --version 2
Create an LogMe instance with name "my-instance" and specify plan by ID
$ stackit logme instance create --name my-instance --plan-id xxx
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_logme_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit logme instance update INSTANCE_ID [flags]

```
Update the plan of an LogMe instance with ID "xxx"
$ stackit logme instance update xxx --plan-id xxx
$ stackit logme instance update xxx --plan-id yyy
Update the range of IPs allowed to access an LogMe instance with ID "xxx"
$ stackit logme instance update xxx --acl 192.168.1.0/24
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_mariadb_instance_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit mariadb instance create [flags]

```
Create an MariaDB instance with name "my-instance" and specify plan by name and version
$ stackit mariadb instance create --name my-instance --plan-name stackit-mariadb-1.2.10-replica --version 3.10
$ stackit mariadb instance create --name my-instance --plan-name stackit-mariadb-1.2.10-replica --version 10.6
Create an MariaDB instance with name "my-instance" and specify plan by ID
$ stackit mariadb instance create --name my-instance --plan-id xxx
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_mariadb_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit mariadb instance update INSTANCE_ID [flags]

```
Update the plan of an MariaDB instance with ID "xxx"
$ stackit mariadb instance update xxx --plan-id xxx
$ stackit mariadb instance update xxx --plan-id yyy
Update the range of IPs allowed to access an MariaDB instance with ID "xxx"
$ stackit mariadb instance update xxx --acl 192.168.1.0/24
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_opensearch_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit opensearch instance update INSTANCE_ID [flags]

```
Update the plan of an OpenSearch instance with ID "xxx"
$ stackit opensearch instance update xxx --plan-id xxx
$ stackit opensearch instance update xxx --plan-id yyy
Update the range of IPs allowed to access an OpenSearch instance with ID "xxx"
$ stackit opensearch instance update xxx --acl 192.168.1.0/24
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_postgresflex_instance_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stackit postgresflex instance create [flags]
--ram int Amount of RAM (in GB)
--storage-class string Storage class (default "premium-perf2-stackit")
--storage-size int Storage size (in GB) (default 10)
--type string Instance type, one of ["Replica" "Single"] (default "Replica")
--type string Instance type, one of ["Single" "Replica"] (default "Replica")
--version string PostgreSQL version. Defaults to the latest version available
```

Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_rabbitmq_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit rabbitmq instance update INSTANCE_ID [flags]

```
Update the plan of an RabbitMQ instance with ID "xxx"
$ stackit rabbitmq instance update xxx --plan-id xxx
$ stackit rabbitmq instance update xxx --plan-id yyy
Update the range of IPs allowed to access an RabbitMQ instance with ID "xxx"
$ stackit rabbitmq instance update xxx --acl 192.168.1.0/24
Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_redis_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ stackit redis instance update INSTANCE_ID [flags]

```
Update the plan of a Redis instance with ID "xxx"
$ stackit redis instance update xxx --plan-id xxx
$ stackit redis instance update xxx --plan-id yyy
Update the range of IPs allowed to access a Redis instance with ID "xxx"
$ stackit redis instance update xxx --acl 192.168.1.0/24
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/logme/instance/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Create an LogMe instance with name "my-instance" and specify plan by name and version`,
"$ stackit logme instance create --name my-instance --plan-name stackit-logme-1.2.10-replica --version 3.10"),
"$ stackit logme instance create --name my-instance --plan-name stackit-logme2-1.2.50-replica --version 2"),
examples.NewExample(
`Create an LogMe instance with name "my-instance" and specify plan by ID`,
"$ stackit logme instance create --name my-instance --plan-id xxx"),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/logme/instance/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Update the plan of an LogMe instance with ID "xxx"`,
"$ stackit logme instance update xxx --plan-id xxx"),
"$ stackit logme instance update xxx --plan-id yyy"),
examples.NewExample(
`Update the range of IPs allowed to access an LogMe instance with ID "xxx"`,
"$ stackit logme instance update xxx --acl 192.168.1.0/24"),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/mariadb/instance/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Create an MariaDB instance with name "my-instance" and specify plan by name and version`,
"$ stackit mariadb instance create --name my-instance --plan-name stackit-mariadb-1.2.10-replica --version 3.10"),
"$ stackit mariadb instance create --name my-instance --plan-name stackit-mariadb-1.2.10-replica --version 10.6"),
examples.NewExample(
`Create an MariaDB instance with name "my-instance" and specify plan by ID`,
"$ stackit mariadb instance create --name my-instance --plan-id xxx"),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/mariadb/instance/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Update the plan of an MariaDB instance with ID "xxx"`,
"$ stackit mariadb instance update xxx --plan-id xxx"),
"$ stackit mariadb instance update xxx --plan-id yyy"),
examples.NewExample(
`Update the range of IPs allowed to access an MariaDB instance with ID "xxx"`,
"$ stackit mariadb instance update xxx --acl 192.168.1.0/24"),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/opensearch/instance/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Update the plan of an OpenSearch instance with ID "xxx"`,
"$ stackit opensearch instance update xxx --plan-id xxx"),
"$ stackit opensearch instance update xxx --plan-id yyy"),
examples.NewExample(
`Update the range of IPs allowed to access an OpenSearch instance with ID "xxx"`,
"$ stackit opensearch instance update xxx --acl 192.168.1.0/24"),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/rabbitmq/instance/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Update the plan of an RabbitMQ instance with ID "xxx"`,
"$ stackit rabbitmq instance update xxx --plan-id xxx"),
"$ stackit rabbitmq instance update xxx --plan-id yyy"),
examples.NewExample(
`Update the range of IPs allowed to access an RabbitMQ instance with ID "xxx"`,
"$ stackit rabbitmq instance update xxx --acl 192.168.1.0/24"),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/redis/instance/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewCmd() *cobra.Command {
Example: examples.Build(
examples.NewExample(
`Update the plan of a Redis instance with ID "xxx"`,
"$ stackit redis instance update xxx --plan-id xxx"),
"$ stackit redis instance update xxx --plan-id yyy"),
examples.NewExample(
`Update the range of IPs allowed to access a Redis instance with ID "xxx"`,
"$ stackit redis instance update xxx --acl 192.168.1.0/24"),
Expand Down
2 changes: 2 additions & 0 deletions internal/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ var ConfigKeys = []string{
SessionTimeLimitKey,

DNSCustomEndpointKey,
LogMeCustomEndpointKey,
MariaDBCustomEndpointKey,
OpenSearchCustomEndpointKey,
PostgresFlexCustomEndpointKey,
ResourceManagerEndpointKey,
Expand Down

0 comments on commit 0301780

Please sign in to comment.