From 07c52edab2a9ca85c8f65bc65acf552cbdcee97e Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Mon, 10 Aug 2020 14:08:29 +0200 Subject: [PATCH] remove condition for rolesDefs --- pkg/controller/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/util.go b/pkg/controller/util.go index b68626418..e460db2a5 100644 --- a/pkg/controller/util.go +++ b/pkg/controller/util.go @@ -124,7 +124,7 @@ func (c *Controller) getInfrastructureRoleDefinitions() []*config.Infrastructure rolesDefs := c.opConfig.InfrastructureRoles // check if we can extract something from the configmap config option - if len(rolesDefs) == 0 && c.opConfig.InfrastructureRolesDefs != "" { + if c.opConfig.InfrastructureRolesDefs != "" { // The configmap option could contain either a role description (in the // form key1: value1, key2: value2), which has to be used together with // an old secret name.