From 7edc14dfb34649b6e67485d6009e6de668d741b1 Mon Sep 17 00:00:00 2001 From: Felix Kunde Date: Wed, 24 Nov 2021 11:58:06 +0100 Subject: [PATCH] Update pkg/controller/util.go --- pkg/controller/util.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/controller/util.go b/pkg/controller/util.go index 3639b4123..41a324b19 100644 --- a/pkg/controller/util.go +++ b/pkg/controller/util.go @@ -229,7 +229,9 @@ func (c *Controller) getInfrastructureRoles( continue } - roles = append(roles, infraRoles...) + for _, r := range infraRoles { + roles = append(roles, r) + } } for _, r := range roles {