We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ce7c50 commit cffa0eeCopy full SHA for cffa0ee
1 file changed
pkg/controller/controller.go
@@ -347,9 +347,11 @@ func (c *Controller) initController() {
347
logMultiLineConfig(c.logger, c.opConfig.MustMarshal())
348
349
roleDefs := c.getInfrastructureRoleDefinitions()
350
- if infraRoles, err := c.getInfrastructureRoles(roleDefs); err != nil {
351
- c.logger.Warningf("could not get infrastructure roles: %v", err)
352
- } else {
+ infraRoles, err := c.getInfrastructureRoles(roleDefs)
+ if err != nil {
+ c.logger.Warningf("could not get all infrastructure roles: %v", err)
353
+ }
354
+ if len(infraRoles) > 0 {
355
c.config.InfrastructureRoles = infraRoles
356
}
357
0 commit comments