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
78a8d287
Commit
78a8d287
authored
Jul 10, 2015
by
Kenjiro Nakayama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment update
parent
22e63a76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
predicates.go
plugin/pkg/scheduler/algorithm/predicates/predicates.go
+1
-1
No files found.
plugin/pkg/scheduler/algorithm/predicates/predicates.go
View file @
78a8d287
...
@@ -82,7 +82,7 @@ func isVolumeConflict(volume api.Volume, pod *api.Pod) bool {
...
@@ -82,7 +82,7 @@ func isVolumeConflict(volume api.Volume, pod *api.Pod) bool {
// NoDiskConflict evaluates if a pod can fit due to the volumes it requests, and those that
// NoDiskConflict evaluates if a pod can fit due to the volumes it requests, and those that
// are already mounted. Some times of volumes are mounted onto node machines. For now, these mounts
// are already mounted. Some times of volumes are mounted onto node machines. For now, these mounts
// are exclusive so if there is already a volume mounted on that node, another pod can't schedule
// are exclusive so if there is already a volume mounted on that node, another pod can't schedule
// there. This is GCE specific for now.
// there. This is GCE
and Amazon EBS
specific for now.
// TODO: migrate this into some per-volume specific code?
// TODO: migrate this into some per-volume specific code?
func
NoDiskConflict
(
pod
*
api
.
Pod
,
existingPods
[]
*
api
.
Pod
,
node
string
)
(
bool
,
error
)
{
func
NoDiskConflict
(
pod
*
api
.
Pod
,
existingPods
[]
*
api
.
Pod
,
node
string
)
(
bool
,
error
)
{
manifest
:=
&
(
pod
.
Spec
)
manifest
:=
&
(
pod
.
Spec
)
...
...
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