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.
This commit is contained in:
		
							parent
							
								
									14050588ee
								
							
						
					
					
						commit
						acf46bfa62
					
				|  | @ -78,7 +78,8 @@ func (c *Cluster) isSystemUsername(username string) bool { | |||
| 
 | ||||
| func isValidFlag(flag string) bool { | ||||
| 	for _, validFlag := range []string{constants.RoleFlagSuperuser, constants.RoleFlagLogin, constants.RoleFlagCreateDB, | ||||
| 		constants.RoleFlagInherit, constants.RoleFlagReplication, constants.RoleFlagByPassRLS} { | ||||
| 		constants.RoleFlagInherit, constants.RoleFlagReplication, constants.RoleFlagByPassRLS, | ||||
| 		constants.RoleFlagCreateRole} { | ||||
| 		if flag == validFlag || flag == "NO"+validFlag { | ||||
| 			return true | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue