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
6436c4a3
Commit
6436c4a3
authored
Jun 11, 2015
by
James DeFelice
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
additional comments as per code review
parent
768759d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
executor.go
contrib/mesos/pkg/executor/executor.go
+2
-1
doc.go
contrib/mesos/pkg/scheduler/meta/doc.go
+4
-1
plugin.go
contrib/mesos/pkg/scheduler/plugin.go
+1
-1
No files found.
contrib/mesos/pkg/executor/executor.go
View file @
6436c4a3
...
...
@@ -472,7 +472,8 @@ func (k *KubernetesExecutor) launchTask(driver bindings.ExecutorDriver, taskId s
task
.
podName
=
podFullName
k
.
pods
[
podFullName
]
=
pod
// send the latest snapshot of the set of pods to the kubelet via the pod update channel
// send the latest snapshot of the set of pods to the kubelet via the pod update channel.
// this results in the kubelet spinning up the new pod.
update
:=
kubelet
.
PodUpdate
{
Op
:
kubelet
.
SET
}
for
_
,
p
:=
range
k
.
pods
{
update
.
Pods
=
append
(
update
.
Pods
,
p
)
...
...
contrib/mesos/pkg/scheduler/meta/doc.go
View file @
6436c4a3
...
...
@@ -15,5 +15,8 @@ limitations under the License.
*/
// Package meta defines framework constants used as keys in k8s annotations
// that are attached to k8s pods
// that are attached to k8s pods. The scheduler uses some of these annotations
// for reconciliation upon failover. Other annotations are used as part of
// the host-to-pod port-mapping implementation understood by the k8s-mesos
// scheduler and custom endpoints-controller implementation.
package
meta
contrib/mesos/pkg/scheduler/plugin.go
View file @
6436c4a3
...
...
@@ -56,7 +56,7 @@ const (
type
schedulerInterface
interface
{
sync
.
Locker
// synchronize scheduler plugin operations
SlaveIndex
algorithm
()
PodScheduleFunc
algorithm
()
PodScheduleFunc
// see types.go
offers
()
offers
.
Registry
tasks
()
podtask
.
Registry
...
...
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