Skip to content

Commit

Permalink
Merge pull request #111691 from alexanderConstantinescu/remove-sched-…
Browse files Browse the repository at this point in the history
…pred-from-ccm

[CCM - service controller] Remove schedulability predicate for LB set
  • Loading branch information
k8s-ci-robot committed Aug 4, 2022
2 parents 897cdea + 59e90f4 commit d0c92ae
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 736 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -984,13 +984,11 @@ type NodeConditionPredicate func(node *v1.Node) bool
var (
allNodePredicates []NodeConditionPredicate = []NodeConditionPredicate{
nodeIncludedPredicate,
nodeSchedulablePredicate,
nodeUnTaintedPredicate,
nodeReadyPredicate,
}
etpLocalNodePredicates []NodeConditionPredicate = []NodeConditionPredicate{
nodeIncludedPredicate,
nodeSchedulablePredicate,
nodeUnTaintedPredicate,
}
)
Expand All @@ -1008,11 +1006,6 @@ func nodeIncludedPredicate(node *v1.Node) bool {
return !hasExcludeBalancerLabel
}

// We consider the node for load balancing only when the node is schedulable.
func nodeSchedulablePredicate(node *v1.Node) bool {
return !node.Spec.Unschedulable
}

// We consider the node for load balancing only when its not tainted for deletion by the cluster autoscaler.
func nodeUnTaintedPredicate(node *v1.Node) bool {
for _, taint := range node.Spec.Taints {
Expand Down

0 comments on commit d0c92ae

Please sign in to comment.