From acf46bfa6237cfc8f0df33cb461bb3f5e9646a9e Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Wed, 8 Aug 2018 10:53:08 +0200 Subject: [PATCH] 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. --- pkg/cluster/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cluster/util.go b/pkg/cluster/util.go index e38b8ef73..853f99ec0 100644 --- a/pkg/cluster/util.go +++ b/pkg/cluster/util.go @@ -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 }