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
07cf6581
Commit
07cf6581
authored
Mar 13, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove etcd references from ReplicationController
parent
39dceb13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
19 deletions
+1
-19
replication_controller.go
pkg/controller/replication_controller.go
+1
-1
replication_controller_test.go
pkg/controller/replication_controller_test.go
+0
-18
No files found.
pkg/controller/replication_controller.go
View file @
07cf6581
...
...
@@ -138,7 +138,7 @@ func (rm *ReplicationManager) watchControllers(resourceVersion *string) {
case
event
,
open
:=
<-
watching
.
ResultChan
()
:
if
!
open
{
// watchChannel has been closed, or something else went
// wrong with our
etcd
watch call. Let the util.Forever()
// wrong with our watch call. Let the util.Forever()
// that called us call us again.
return
}
...
...
pkg/controller/replication_controller_test.go
View file @
07cf6581
...
...
@@ -30,10 +30,8 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api/testapi"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
"github.com/GoogleCloudPlatform/kubernetes/pkg/tools"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/watch"
"github.com/coreos/go-etcd/etcd"
)
func
makeNamespaceURL
(
namespace
,
suffix
string
)
string
{
...
...
@@ -250,22 +248,6 @@ func TestSynchronize(t *testing.T) {
"type"
:
"production"
,
}
fakeEtcd
:=
tools
.
NewFakeEtcdClient
(
t
)
fakeEtcd
.
Data
[
"/registry/controllers"
]
=
tools
.
EtcdResponseWithError
{
R
:
&
etcd
.
Response
{
Node
:
&
etcd
.
Node
{
Nodes
:
[]
*
etcd
.
Node
{
{
Value
:
runtime
.
EncodeOrDie
(
testapi
.
Codec
(),
&
controllerSpec1
),
},
{
Value
:
runtime
.
EncodeOrDie
(
testapi
.
Codec
(),
&
controllerSpec2
),
},
},
},
},
}
fakePodHandler
:=
util
.
FakeHandler
{
StatusCode
:
200
,
ResponseBody
:
"{
\"
apiVersion
\"
:
\"
"
+
testapi
.
Version
()
+
"
\"
,
\"
kind
\"
:
\"
PodList
\"
}"
,
...
...
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