From cffa0ee63ccec76de6ceecc86325c520576d1884 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Wed, 18 Feb 2026 08:38:17 +0100 Subject: [PATCH] try to set infra roles also if one fails (#3045) --- pkg/controller/controller.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go index e46b9ee44..13e4017c8 100644 --- a/pkg/controller/controller.go +++ b/pkg/controller/controller.go @@ -347,9 +347,11 @@ func (c *Controller) initController() { logMultiLineConfig(c.logger, c.opConfig.MustMarshal()) roleDefs := c.getInfrastructureRoleDefinitions() - if infraRoles, err := c.getInfrastructureRoles(roleDefs); err != nil { - c.logger.Warningf("could not get infrastructure roles: %v", err) - } else { + infraRoles, err := c.getInfrastructureRoles(roleDefs) + if err != nil { + c.logger.Warningf("could not get all infrastructure roles: %v", err) + } + if len(infraRoles) > 0 { c.config.InfrastructureRoles = infraRoles }