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
e94e50c9
Commit
e94e50c9
authored
Jul 03, 2017
by
Xing Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix function and type names in the comments
This patch fixes function and type names in the comments in predicates.go.
parent
07449649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
predicates.go
plugin/pkg/scheduler/algorithm/predicates/predicates.go
+8
-8
No files found.
plugin/pkg/scheduler/algorithm/predicates/predicates.go
View file @
e94e50c9
...
...
@@ -44,7 +44,7 @@ import (
"k8s.io/metrics/pkg/client/clientset_generated/clientset"
)
//
predicatePrecomputations
: Helper types/variables...
//
PredicateMetadataModifier
: Helper types/variables...
type
PredicateMetadataModifier
func
(
pm
*
predicateMetadata
)
var
predicatePrecomputeRegisterLock
sync
.
Mutex
...
...
@@ -56,7 +56,7 @@ func RegisterPredicatePrecomputation(predicateName string, precomp PredicateMeta
predicatePrecomputations
[
predicateName
]
=
precomp
}
// Other types for predicate functions...
//
NodeInfo:
Other types for predicate functions...
type
NodeInfo
interface
{
GetNodeInfo
(
nodeID
string
)
(
*
v1
.
Node
,
error
)
}
...
...
@@ -377,7 +377,7 @@ type VolumeZoneChecker struct {
pvcInfo
PersistentVolumeClaimInfo
}
// VolumeZonePredicate evaluates if a pod can fit due to the volumes it requests, given
//
New
VolumeZonePredicate evaluates if a pod can fit due to the volumes it requests, given
// that some volumes may have zone scheduling constraints. The requirement is that any
// volume zone-labels must match the equivalent zone-labels on the node. It is OK for
// the node to have more zone-label constraints (for example, a hypothetical replicated
...
...
@@ -474,10 +474,10 @@ func (c *VolumeZoneChecker) predicate(pod *v1.Pod, meta interface{}, nodeInfo *s
return
true
,
nil
,
nil
}
//
Returns a *schedulercache.Resource that covers the largest width in each
//
resource dimension. Because init-containers run sequentially, we collect the
//
max in each dimension iteratively. In contrast, we sum the resource vectors
//
for
regular containers since they run simultaneously.
//
GetResourceRequest returns a *schedulercache.Resource that covers the largest
//
width in each resource dimension. Because init-containers run sequentially, we collect
//
the max in each dimension iteratively. In contrast, we sum the resource vectors for
// regular containers since they run simultaneously.
//
// Example:
//
...
...
@@ -1307,7 +1307,7 @@ type VolumeNodeChecker struct {
client
clientset
.
Interface
}
//
VolumeNodeChecker
evaluates if a pod can fit due to the volumes it requests, given
//
NewVolumeNodePredicate
evaluates if a pod can fit due to the volumes it requests, given
// that some volumes have node topology constraints, particularly when using Local PVs.
// The requirement is that any pod that uses a PVC that is bound to a PV with topology constraints
// must be scheduled to a node that satisfies the PV's topology labels.
...
...
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