Skip to content

Commit c43de4c

Browse files
feat(mongodb-flex): add readWriteAnyDatabase role (#884)
1 parent 6b1f897 commit c43de4c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/stackit_mongodbflex_user_create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ stackit mongodbflex user create [flags]
2929
--database string The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it
3030
-h, --help Help for "stackit mongodbflex user create"
3131
--instance-id string ID of the instance
32-
--role strings Roles of the user, possible values are ["read" "readWrite"] (default [read])
32+
--role strings Roles of the user, possible values are ["read" "readWrite" "readWriteAnyDatabase"] (default [read])
3333
--username string Username of the user. If not specified, a random username will be assigned
3434
```
3535

docs/stackit_mongodbflex_user_update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ stackit mongodbflex user update USER_ID [flags]
2323
--database string The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it
2424
-h, --help Help for "stackit mongodbflex user update"
2525
--instance-id string ID of the instance
26-
--role strings Roles of the user, possible values are ["read" "readWrite"] (default [])
26+
--role strings Roles of the user, possible values are ["read" "readWrite" "readWriteAnyDatabase"] (default [])
2727
```
2828

2929
### Options inherited from parent commands

internal/cmd/mongodbflex/user/create/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
103103
}
104104

105105
func configureFlags(cmd *cobra.Command) {
106-
roleOptions := []string{"read", "readWrite"}
106+
roleOptions := []string{"read", "readWrite", "readWriteAnyDatabase"}
107107

108108
cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
109109
cmd.Flags().String(usernameFlag, "", "Username of the user. If not specified, a random username will be assigned")

internal/cmd/mongodbflex/user/update/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
9797
}
9898

9999
func configureFlags(cmd *cobra.Command) {
100-
roleOptions := []string{"read", "readWrite"}
100+
roleOptions := []string{"read", "readWrite", "readWriteAnyDatabase"}
101101

102102
cmd.Flags().Var(flags.UUIDFlag(), instanceIdFlag, "ID of the instance")
103103
cmd.Flags().String(databaseFlag, "", "The database inside the MongoDB instance that the user has access to. If it does not exist, it will be created once the user writes to it")

0 commit comments

Comments
 (0)