mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 21:16:25 +02:00
rename re-addedwq roles
This commit is contained in:
@@ -586,6 +586,10 @@ func (c *Cluster) syncRoles() (err error) {
|
||||
|
||||
for _, u := range c.pgUsers {
|
||||
userNames = append(userNames, u.Name)
|
||||
// add team user name with rename suffix in case we need to rename it back
|
||||
if u.Origin == spec.RoleOriginTeamsAPI {
|
||||
userNames = append(userNames, u.Name+constants.RoleRenameSuffix)
|
||||
}
|
||||
}
|
||||
|
||||
// add removed additional team members from cache
|
||||
|
||||
Reference in New Issue
Block a user