Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/stackit_mongodbflex_instance_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stackit mongodbflex instance create [flags]
--ram int Amount of RAM (in GB)
--storage-class string Storage class (default "premium-perf2-mongodb")
--storage-size int Storage size (in GB) (default 10)
--type string Instance type, one of ["Single" "Replica" "Sharded"] (default "Replica")
--type string Instance type, one of ["Replica" "Sharded" "Single"] (default "Replica")
--version string MongoDB version. Defaults to the latest version available
```

Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_mongodbflex_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ stackit mongodbflex instance update INSTANCE_ID [flags]
--ram int Amount of RAM (in GB)
--storage-class string Storage class
--storage-size int Storage size (in GB)
--type string Instance type, one of ["Single" "Replica" "Sharded"]
--type string Instance type, one of ["Replica" "Sharded" "Single"]
--version string Version
```

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 ["Single" "Replica"] (default "Replica")
--type string Instance type, one of ["Replica" "Single"] (default "Replica")
--version string PostgreSQL version. Defaults to the latest version available
```

Expand Down
2 changes: 1 addition & 1 deletion docs/stackit_postgresflex_instance_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ stackit postgresflex instance update INSTANCE_ID [flags]
--ram int Amount of RAM (in GB)
--storage-class string Storage class
--storage-size int Storage size (in GB)
--type string Instance type, one of ["Single" "Replica"]
--type string Instance type, one of ["Replica" "Single"]
--version string Version
```

Expand Down
4 changes: 4 additions & 0 deletions internal/pkg/services/mongodbflex/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package utils
import (
"context"
"fmt"
"slices"
"strings"

"github.com/stackitcloud/stackit-cli/internal/pkg/errors"
Expand All @@ -25,6 +26,9 @@ func AvailableInstanceTypes() []string {
instanceTypes[i] = k
i++
}
// Dict keys aren't iterated in a consistent order
// So we sort the array to make the output consistent
slices.Sort(instanceTypes)
return instanceTypes
}

Expand Down
4 changes: 4 additions & 0 deletions internal/pkg/services/postgresflex/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package utils
import (
"context"
"fmt"
"slices"
"strings"

"github.com/stackitcloud/stackit-cli/internal/pkg/errors"
Expand All @@ -24,6 +25,9 @@ func AvailableInstanceTypes() []string {
instanceTypes[i] = k
i++
}
// Dict keys aren't iterated in a consistent order
// So we sort the array to make the output consistent
slices.Sort(instanceTypes)
return instanceTypes
}

Expand Down