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
9c24131b
Commit
9c24131b
authored
Sep 21, 2015
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Watch code in executor
parent
039acb8c
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 @
9c24131b
...
@@ -42,7 +42,6 @@ import (
...
@@ -42,7 +42,6 @@ import (
"k8s.io/kubernetes/pkg/kubelet/container"
"k8s.io/kubernetes/pkg/kubelet/container"
"k8s.io/kubernetes/pkg/kubelet/dockertools"
"k8s.io/kubernetes/pkg/kubelet/dockertools"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/watch"
)
)
const
(
const
(
...
@@ -109,7 +108,6 @@ type KubernetesExecutor struct {
...
@@ -109,7 +108,6 @@ type KubernetesExecutor struct {
lock
sync
.
RWMutex
lock
sync
.
RWMutex
sourcename
string
sourcename
string
client
*
client
.
Client
client
*
client
.
Client
events
<-
chan
watch
.
Event
done
chan
struct
{}
// signals shutdown
done
chan
struct
{}
// signals shutdown
outgoing
chan
func
()
(
mesos
.
Status
,
error
)
// outgoing queue to the mesos driver
outgoing
chan
func
()
(
mesos
.
Status
,
error
)
// outgoing queue to the mesos driver
dockerClient
dockertools
.
DockerInterface
dockerClient
dockertools
.
DockerInterface
...
@@ -131,7 +129,6 @@ type Config struct {
...
@@ -131,7 +129,6 @@ type Config struct {
Updates
chan
<-
interface
{}
// to send pod config updates to the kubelet
Updates
chan
<-
interface
{}
// to send pod config updates to the kubelet
SourceName
string
SourceName
string
APIClient
*
client
.
Client
APIClient
*
client
.
Client
Watch
watch
.
Interface
Docker
dockertools
.
DockerInterface
Docker
dockertools
.
DockerInterface
ShutdownAlert
func
()
ShutdownAlert
func
()
SuicideTimeout
time
.
Duration
SuicideTimeout
time
.
Duration
...
@@ -169,20 +166,6 @@ func New(config Config) *KubernetesExecutor {
...
@@ -169,20 +166,6 @@ func New(config Config) *KubernetesExecutor {
staticPodsConfigPath
:
config
.
StaticPodsConfigPath
,
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
// watch pods from the given pod ListWatch
_
,
k
.
podController
=
framework
.
NewInformer
(
config
.
PodLW
,
&
api
.
Pod
{},
podRelistPeriod
,
&
framework
.
ResourceEventHandlerFuncs
{
_
,
k
.
podController
=
framework
.
NewInformer
(
config
.
PodLW
,
&
api
.
Pod
{},
podRelistPeriod
,
&
framework
.
ResourceEventHandlerFuncs
{
AddFunc
:
func
(
obj
interface
{})
{
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