Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
component/metallb: Fix controller tolerations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
johananl committed Sep 9, 2020
1 parent 03977fe commit 233a60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/components/metallb/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
Expand Down

0 comments on commit 233a60a

Please sign in to comment.