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
1ecda94f
Commit
1ecda94f
authored
Oct 29, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15305 from mqliang/deamonSetList
Auto commit by PR queue bot
parents
c691f66b
45269bef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
listers.go
pkg/client/cache/listers.go
+2
-2
listers_test.go
pkg/client/cache/listers_test.go
+4
-2
controller.go
pkg/controller/daemon/controller.go
+2
-2
No files found.
pkg/client/cache/listers.go
View file @
1ecda94f
...
...
@@ -244,9 +244,9 @@ func (s *StoreToDaemonSetLister) Exists(ds *extensions.DaemonSet) (bool, error)
// List lists all daemon sets in the store.
// TODO: converge on the interface in pkg/client
func
(
s
*
StoreToDaemonSetLister
)
List
()
(
dss
[]
extensions
.
DaemonSe
t
,
err
error
)
{
func
(
s
*
StoreToDaemonSetLister
)
List
()
(
dss
extensions
.
DaemonSetLis
t
,
err
error
)
{
for
_
,
c
:=
range
s
.
Store
.
List
()
{
dss
=
append
(
ds
s
,
*
(
c
.
(
*
extensions
.
DaemonSet
)))
dss
.
Items
=
append
(
dss
.
Item
s
,
*
(
c
.
(
*
extensions
.
DaemonSet
)))
}
return
dss
,
nil
}
...
...
pkg/client/cache/listers_test.go
View file @
1ecda94f
...
...
@@ -173,7 +173,8 @@ func TestStoreToDaemonSetLister(t *testing.T) {
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"basic"
}},
},
list
:
func
()
([]
extensions
.
DaemonSet
,
error
)
{
return
lister
.
List
()
list
,
err
:=
lister
.
List
()
return
list
.
Items
,
err
},
outDaemonSetNames
:
sets
.
NewString
(
"basic"
),
},
...
...
@@ -185,7 +186,8 @@ func TestStoreToDaemonSetLister(t *testing.T) {
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"complex2"
}},
},
list
:
func
()
([]
extensions
.
DaemonSet
,
error
)
{
return
lister
.
List
()
list
,
err
:=
lister
.
List
()
return
list
.
Items
,
err
},
outDaemonSetNames
:
sets
.
NewString
(
"basic"
,
"complex"
,
"complex2"
),
},
...
...
pkg/controller/daemon/controller.go
View file @
1ecda94f
...
...
@@ -202,8 +202,8 @@ func (dsc *DaemonSetsController) enqueueAllDaemonSets() {
glog
.
Errorf
(
"Error enqueueing daemon sets: %v"
,
err
)
return
}
for
i
:=
range
ds
{
dsc
.
enqueueDaemonSet
(
&
ds
[
i
])
for
i
:=
range
ds
.
Items
{
dsc
.
enqueueDaemonSet
(
&
ds
.
Items
[
i
])
}
}
...
...
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