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.

openshift-rebase(v1.24):source=6da1c7d4562
  • Loading branch information
sttts authored and soltysh committed Sep 20, 2022
1 parent 7bf2f1f commit 38bfed3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions staging/src/k8s.io/kubelet/pkg/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 38bfed3

Please sign in to comment.