Skip to content

Commit

Permalink
Rename node roles
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Markus With committed Nov 15, 2020
1 parent 47a8e6c commit 9266e90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions channels/pkg/channels/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ func (a *Addon) AddNeedsUpdateLabel(ctx context.Context, k8sClient kubernetes.In
klog.Infof("addon %v wants to roll %v nodes", a.Name, a.Spec.NeedUpdate)
selector := ""
switch a.Spec.NeedUpdate {
case "masters":
selector = "node-role.kubrnetes.io/master="
case "nodes":
case "control-plane":
selector = "node-role.kubernetes.io/master="
case "worker":
selector = "node-role.kubernetes.io/node="
}

Expand Down

0 comments on commit 9266e90

Please sign in to comment.