From 233a60a03fce115f2140e6f96f19ec27ba9f1923 Mon Sep 17 00:00:00 2001 From: Johannes Liebermann Date: Wed, 9 Sep 2020 16:38:35 +0200 Subject: [PATCH] component/metallb: Fix controller tolerations When appending to c.ControllerTolerations, we should use c.ControllerTolerations as the first argument of append(). The current state results in speaker tolerations being applied to the controller in some cases. --- pkg/components/metallb/component.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/components/metallb/component.go b/pkg/components/metallb/component.go index fb619b072..420b22b52 100644 --- a/pkg/components/metallb/component.go +++ b/pkg/components/metallb/component.go @@ -73,7 +73,7 @@ func (c *component) RenderManifests() (map[string]string, error) { c.ControllerNodeSelectors["beta.kubernetes.io/os"] = "linux" c.ControllerNodeSelectors["node.kubernetes.io/master"] = "" - c.ControllerTolerations = append(c.SpeakerTolerations, util.Toleration{ + c.ControllerTolerations = append(c.ControllerTolerations, util.Toleration{ Effect: "NoSchedule", Key: "node-role.kubernetes.io/master", })