Skip to content

Commit 01ae1b1

Browse files
committed
remove kubernetes.io/hostname label copying
1 parent 934e247 commit 01ae1b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/features/kube_features.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,8 @@ const (
970970
// alpha: v1.33
971971
//
972972
// Enables the PodTopologyLabelsAdmission admission plugin that mutates `pod/binding`
973-
// requests by copying the `topology.k8s.io/{zone,region}` and `kubernetes.io/hostname`
974-
// labels from the assigned Node object (in the Binding being admitted) onto the Binding
973+
// requests by copying the `topology.k8s.io/{zone,region}` labels from the assigned
974+
// Node object (in the Binding being admitted) onto the Binding
975975
// so that it can be persisted onto the Pod object when the Pod is being scheduled.
976976
// This allows workloads running in pods to understand the topology information of their assigned node.
977977
// Enabling this feature also permits external schedulers to set labels on pods in an atomic

plugin/pkg/admission/podtopologylabels/admission.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const PluginName = "PodTopologyLabels"
4141
// This configuration is used by kube-apiserver.
4242
// It is not exported to avoid any chance of accidentally mutating the variable.
4343
var defaultConfig = Config{
44-
Labels: []string{"topology.k8s.io/zone", "topology.k8s.io/region", "kubernetes.io/hostname"},
44+
Labels: []string{"topology.k8s.io/zone", "topology.k8s.io/region"},
4545
}
4646

4747
// Register registers a plugin

0 commit comments

Comments
 (0)