mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-01 01:18:22 +02:00
fix redundant appending of infrastructure roles (#1192)
This commit is contained in:
@@ -341,9 +341,7 @@ func (c *Controller) getInfrastructureRole(
|
||||
util.Coalesce(string(secretData[infraRole.RoleKey]), infraRole.DefaultRoleValue))
|
||||
}
|
||||
|
||||
if roleDescr.Valid() {
|
||||
roles = append(roles, *roleDescr)
|
||||
} else {
|
||||
if !roleDescr.Valid() {
|
||||
msg := "infrastructure role %q is not complete and ignored"
|
||||
c.logger.Warningf(msg, roleDescr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user