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
ee309f3c
Commit
ee309f3c
authored
Jun 11, 2015
by
James DeFelice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add TODOs
parent
f445ead2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
doc.go
contrib/mesos/pkg/scheduler/constraint/doc.go
+2
-0
plugin.go
contrib/mesos/pkg/scheduler/plugin.go
+4
-0
pod_task.go
contrib/mesos/pkg/scheduler/podtask/pod_task.go
+1
-0
No files found.
contrib/mesos/pkg/scheduler/constraint/doc.go
View file @
ee309f3c
...
@@ -16,4 +16,6 @@ limitations under the License.
...
@@ -16,4 +16,6 @@ limitations under the License.
// Package constraint exposes Marathon-like constraints for scheduling pods.
// Package constraint exposes Marathon-like constraints for scheduling pods.
// Incomplete.
// Incomplete.
// TODO(jdef) We need better alignment between k8s-mesos and k8s scheduling
// constraints (read: a common constraints API).
package
constraint
package
constraint
contrib/mesos/pkg/scheduler/plugin.go
View file @
ee309f3c
...
@@ -326,6 +326,10 @@ func (k *kubeScheduler) doSchedule(task *podtask.T, err error) (string, error) {
...
@@ -326,6 +326,10 @@ func (k *kubeScheduler) doSchedule(task *podtask.T, err error) (string, error) {
return
""
,
fmt
.
Errorf
(
"task.offer assignment must be idempotent, task %+v: offer %+v"
,
task
,
offer
)
return
""
,
fmt
.
Errorf
(
"task.offer assignment must be idempotent, task %+v: offer %+v"
,
task
,
offer
)
}
}
task
.
Offer
=
offer
task
.
Offer
=
offer
//TODO(jdef) FillFromDetails currently allocates fixed (hardwired) cpu and memory resources for all
//tasks. This will be fixed once we properly integrate parent-cgroup support into the kublet-executor.
//For now we are completely ignoring the resources specified in the pod.
//see: https://github.com/mesosphere/kubernetes-mesos/issues/68
task
.
FillFromDetails
(
details
)
task
.
FillFromDetails
(
details
)
if
err
:=
k
.
api
.
tasks
()
.
Update
(
task
);
err
!=
nil
{
if
err
:=
k
.
api
.
tasks
()
.
Update
(
task
);
err
!=
nil
{
offer
.
Release
()
offer
.
Release
()
...
...
contrib/mesos/pkg/scheduler/podtask/pod_task.go
View file @
ee309f3c
...
@@ -153,6 +153,7 @@ func (t *T) BuildTaskInfo() *mesos.TaskInfo {
...
@@ -153,6 +153,7 @@ func (t *T) BuildTaskInfo() *mesos.TaskInfo {
// Fill the Spec in the T, should be called during k8s scheduling,
// Fill the Spec in the T, should be called during k8s scheduling,
// before binding.
// before binding.
// TODO(jdef): remove hardcoded values and make use of actual pod resource settings
func
(
t
*
T
)
FillFromDetails
(
details
*
mesos
.
Offer
)
error
{
func
(
t
*
T
)
FillFromDetails
(
details
*
mesos
.
Offer
)
error
{
if
details
==
nil
{
if
details
==
nil
{
//programming error
//programming error
...
...
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