From e58539e418061d54849a98a8fee2a4823297f11a Mon Sep 17 00:00:00 2001 From: Alina Militaru <41362174+asincu@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:38:23 -0800 Subject: [PATCH] Fix! Delete Rolebind from toDelete objects (#3028) (#3029) --- pkg/render/fluentd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/render/fluentd.go b/pkg/render/fluentd.go index 50544c8d04..5f20d11ddc 100644 --- a/pkg/render/fluentd.go +++ b/pkg/render/fluentd.go @@ -309,7 +309,7 @@ func (c *fluentdComponent) Objects() ([]client.Object, []client.Object) { if c.cfg.ManagedCluster { objs = append(objs, c.externalLinseedRoleBinding()) } else { - toDelete = append(objs, c.externalLinseedRoleBinding()) + toDelete = append(toDelete, c.externalLinseedRoleBinding()) } // Windows PSP does not support allowedHostPaths yet.