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
95d4c70a
Commit
95d4c70a
authored
Sep 25, 2015
by
Brian Grant
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14270 from mesosphere/sttts-cleanup-executor-events
MESOS: Remove unused Watch code in executor
parents
0c278ce5
9c24131b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
executor.go
contrib/mesos/pkg/executor/executor.go
+0
-17
No files found.
contrib/mesos/pkg/executor/executor.go
View file @
95d4c70a
...
...
@@ -42,7 +42,6 @@ import (
"k8s.io/kubernetes/pkg/kubelet/container"
"k8s.io/kubernetes/pkg/kubelet/dockertools"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/watch"
)
const
(
...
...
@@ -109,7 +108,6 @@ type KubernetesExecutor struct {
lock
sync
.
RWMutex
sourcename
string
client
*
client
.
Client
events
<-
chan
watch
.
Event
done
chan
struct
{}
// signals shutdown
outgoing
chan
func
()
(
mesos
.
Status
,
error
)
// outgoing queue to the mesos driver
dockerClient
dockertools
.
DockerInterface
...
...
@@ -131,7 +129,6 @@ type Config struct {
Updates
chan
<-
interface
{}
// to send pod config updates to the kubelet
SourceName
string
APIClient
*
client
.
Client
Watch
watch
.
Interface
Docker
dockertools
.
DockerInterface
ShutdownAlert
func
()
SuicideTimeout
time
.
Duration
...
...
@@ -169,20 +166,6 @@ func New(config Config) *KubernetesExecutor {
staticPodsConfigPath
:
config
.
StaticPodsConfigPath
,
}
//TODO(jdef) do something real with these events..
if
config
.
Watch
!=
nil
{
events
:=
config
.
Watch
.
ResultChan
()
if
events
!=
nil
{
go
func
()
{
for
e
:=
range
events
{
// e ~= watch.Event { ADDED, *api.Event }
log
.
V
(
1
)
.
Info
(
e
)
}
}()
k
.
events
=
events
}
}
// watch pods from the given pod ListWatch
_
,
k
.
podController
=
framework
.
NewInformer
(
config
.
PodLW
,
&
api
.
Pod
{},
podRelistPeriod
,
&
framework
.
ResourceEventHandlerFuncs
{
AddFunc
:
func
(
obj
interface
{})
{
...
...
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