Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5468b8d5
Unverified
Commit
5468b8d5
authored
Jan 28, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jan 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73341 from yanghaichao12/comm0126
Fix typos
parents
8b98e802
31a13996
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
predicates.go
pkg/scheduler/algorithm/predicates/predicates.go
+2
-2
node_affinity.go
pkg/scheduler/algorithm/priorities/node_affinity.go
+1
-1
types_test.go
pkg/scheduler/algorithm/priorities/types_test.go
+1
-1
No files found.
pkg/scheduler/algorithm/predicates/predicates.go
View file @
5468b8d5
...
...
@@ -950,7 +950,7 @@ func (n *NodeLabelChecker) CheckNodeLabelPresence(pod *v1.Pod, meta PredicateMet
return
true
,
nil
,
nil
}
// ServiceAffinity defines a struct used for creat
e
service affinity predicates.
// ServiceAffinity defines a struct used for creat
ing
service affinity predicates.
type
ServiceAffinity
struct
{
podLister
algorithm
.
PodLister
serviceLister
algorithm
.
ServiceLister
...
...
@@ -1012,7 +1012,7 @@ func NewServiceAffinityPredicate(podLister algorithm.PodLister, serviceLister al
//
// To do this, we "reverse engineer" a selector by introspecting existing pods running under the same service+namespace.
// These backfilled labels in the selector "L" are defined like so:
// - L is a label that the ServiceAffinity object needs as a matching constraint
s
.
// - L is a label that the ServiceAffinity object needs as a matching constraint.
// - L is not defined in the pod itself already.
// - and SOME pod, from a service, in the same namespace, ALREADY scheduled onto a node, has a matching value.
//
...
...
pkg/scheduler/algorithm/priorities/node_affinity.go
View file @
5468b8d5
...
...
@@ -27,7 +27,7 @@ import (
)
// CalculateNodeAffinityPriorityMap prioritizes nodes according to node affinity scheduling preferences
// indicated in PreferredDuringSchedulingIgnoredDuringExecution. Each time a node match a preferredSchedulingTerm,
// indicated in PreferredDuringSchedulingIgnoredDuringExecution. Each time a node match
s
a preferredSchedulingTerm,
// it will a get an add of preferredSchedulingTerm.Weight. Thus, the more preferredSchedulingTerms
// the node satisfies and the more the preferredSchedulingTerm that is satisfied weights, the higher
// score the node gets.
...
...
pkg/scheduler/algorithm/priorities/types_test.go
View file @
5468b8d5
...
...
@@ -25,7 +25,7 @@ import (
schedulernodeinfo
"k8s.io/kubernetes/pkg/scheduler/nodeinfo"
)
// EmptyPriorityMetadataProducer should return
s
a no-op PriorityMetadataProducer type.
// EmptyPriorityMetadataProducer should return a no-op PriorityMetadataProducer type.
func
TestEmptyPriorityMetadataProducer
(
t
*
testing
.
T
)
{
fakePod
:=
new
(
v1
.
Pod
)
fakeLabelSelector
:=
labels
.
SelectorFromSet
(
labels
.
Set
{
"foo"
:
"bar"
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment