Skip to content

Commit

Permalink
UPSTREAM: <carry>: noderestrictions: add node-role.kubernetes.io/* to…
Browse files Browse the repository at this point in the history
… allowed node labels

Server side validation of node labels was added in kubernetes#90307. We only disabled kubelet-side validation before to make our node role labels work.
  • Loading branch information
sttts authored and soltysh committed Sep 8, 2021
1 parent 3b09b50 commit f30ef8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/kubelet/apis/well_known_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ var kubeletLabels = sets.NewString(

LabelOS,
LabelArch,

// These are special for OpenShift:
"node-role.kubernetes.io/master",
"node-role.kubernetes.io/worker",
"node-role.kubernetes.io/etcd",
)

var kubeletLabelNamespaces = sets.NewString(
Expand Down

0 comments on commit f30ef8f

Please sign in to comment.