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.
@@ -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",
})
