Skip to content

Commit acf46bf

Browse files
Include CREATEROLE to the list of allowed flags. (#365)
Previously it has been supported by the operator, but the validity check excluded it for no reason.
1 parent 1405058 commit acf46bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/cluster/util.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ func (c *Cluster) isSystemUsername(username string) bool {
7878

7979
func isValidFlag(flag string) bool {
8080
for _, validFlag := range []string{constants.RoleFlagSuperuser, constants.RoleFlagLogin, constants.RoleFlagCreateDB,
81-
constants.RoleFlagInherit, constants.RoleFlagReplication, constants.RoleFlagByPassRLS} {
81+
constants.RoleFlagInherit, constants.RoleFlagReplication, constants.RoleFlagByPassRLS,
82+
constants.RoleFlagCreateRole} {
8283
if flag == validFlag || flag == "NO"+validFlag {
8384
return true
8485
}

0 commit comments

Comments
 (0)