mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Merge pull request #116536 from alexanderConstantinescu/pr-115204-followup
[KCCM] service controller - #115204 follow-up
This commit is contained in:
commit
52559dc6fb
@ -943,6 +943,7 @@ var (
|
||||
nodeUnTaintedPredicate,
|
||||
}
|
||||
stableNodeSetPredicates []NodeConditionPredicate = []NodeConditionPredicate{
|
||||
nodeNotDeletedPredicate,
|
||||
nodeIncludedPredicate,
|
||||
// This is not perfect, but probably good enough. We won't update the
|
||||
// LBs just because the taint was added (see shouldSyncUpdatedNode) but
|
||||
@ -989,6 +990,10 @@ func nodeReadyPredicate(node *v1.Node) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func nodeNotDeletedPredicate(node *v1.Node) bool {
|
||||
return node.DeletionTimestamp.IsZero()
|
||||
}
|
||||
|
||||
// listWithPredicate gets nodes that matches all predicate functions.
|
||||
func listWithPredicates(nodeLister corelisters.NodeLister, predicates ...NodeConditionPredicate) ([]*v1.Node, error) {
|
||||
nodes, err := nodeLister.List(labels.Everything())
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user