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
5b658bb6
Unverified
Commit
5b658bb6
authored
Sep 30, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 30, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69136 from zhangmingld/deletecommentgetPodsMatchingAffinity
func getPodsMatchingAffinity no longer exists,dont need it in comment
parents
c526f097
061e0dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
metadata.go
pkg/scheduler/algorithm/predicates/metadata.go
+2
-2
No files found.
pkg/scheduler/algorithm/predicates/metadata.go
View file @
5b658bb6
...
@@ -492,7 +492,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s
...
@@ -492,7 +492,7 @@ func getTPMapMatchingIncomingAffinityAntiAffinity(pod *v1.Pod, nodeInfoMap map[s
}
}
// targetPodMatchesAffinityOfPod returns true if "targetPod" matches ALL affinity terms of
// targetPodMatchesAffinityOfPod returns true if "targetPod" matches ALL affinity terms of
// "pod".
Similar to getPodsMatchingAffinity, t
his function does not check topology.
// "pod".
T
his function does not check topology.
// So, whether the targetPod actually matches or not needs further checks for a specific
// So, whether the targetPod actually matches or not needs further checks for a specific
// node.
// node.
func
targetPodMatchesAffinityOfPod
(
pod
,
targetPod
*
v1
.
Pod
)
bool
{
func
targetPodMatchesAffinityOfPod
(
pod
,
targetPod
*
v1
.
Pod
)
bool
{
...
@@ -509,7 +509,7 @@ func targetPodMatchesAffinityOfPod(pod, targetPod *v1.Pod) bool {
...
@@ -509,7 +509,7 @@ func targetPodMatchesAffinityOfPod(pod, targetPod *v1.Pod) bool {
}
}
// targetPodMatchesAntiAffinityOfPod returns true if "targetPod" matches ANY anti-affinity
// targetPodMatchesAntiAffinityOfPod returns true if "targetPod" matches ANY anti-affinity
// term of "pod".
Similar to getPodsMatchingAffinity, t
his function does not check topology.
// term of "pod".
T
his function does not check topology.
// So, whether the targetPod actually matches or not needs further checks for a specific
// So, whether the targetPod actually matches or not needs further checks for a specific
// node.
// node.
func
targetPodMatchesAntiAffinityOfPod
(
pod
,
targetPod
*
v1
.
Pod
)
bool
{
func
targetPodMatchesAntiAffinityOfPod
(
pod
,
targetPod
*
v1
.
Pod
)
bool
{
...
...
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