mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Defer the removal of labelAlphaNodeRoleExcludeBalancer to 1.18
This commit is contained in:
parent
2183a84feb
commit
fd8f2bd91f
@ -72,7 +72,7 @@ const (
|
|||||||
|
|
||||||
// labelAlphaNodeRoleExcludeBalancer specifies that the node should be
|
// labelAlphaNodeRoleExcludeBalancer specifies that the node should be
|
||||||
// exclude from load balancers created by a cloud provider. This label is deprecated and will
|
// exclude from load balancers created by a cloud provider. This label is deprecated and will
|
||||||
// be removed in 1.17.
|
// be removed in 1.18.
|
||||||
labelAlphaNodeRoleExcludeBalancer = "alpha.service-controller.kubernetes.io/exclude-balancer"
|
labelAlphaNodeRoleExcludeBalancer = "alpha.service-controller.kubernetes.io/exclude-balancer"
|
||||||
|
|
||||||
// serviceNodeExclusionFeature is the feature gate name that
|
// serviceNodeExclusionFeature is the feature gate name that
|
||||||
@ -647,7 +647,7 @@ func getNodeConditionPredicate() corelisters.NodeConditionPredicate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if utilfeature.DefaultFeatureGate.Enabled(serviceNodeExclusionFeature) {
|
if utilfeature.DefaultFeatureGate.Enabled(serviceNodeExclusionFeature) {
|
||||||
// Will be removed in 1.17
|
// Will be removed in 1.18
|
||||||
if _, hasExcludeBalancerLabel := node.Labels[labelAlphaNodeRoleExcludeBalancer]; hasExcludeBalancerLabel {
|
if _, hasExcludeBalancerLabel := node.Labels[labelAlphaNodeRoleExcludeBalancer]; hasExcludeBalancerLabel {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user