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
1beed0f4
Commit
1beed0f4
authored
Feb 20, 2018
by
Ayush Pateria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code and modify tests to include set based selector
parent
4f84a1cb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
controller_history.go
pkg/controller/history/controller_history.go
+0
-1
controller_history_test.go
pkg/controller/history/controller_history_test.go
+0
-0
stateful_set_utils.go
pkg/controller/statefulset/stateful_set_utils.go
+0
-5
No files found.
pkg/controller/history/controller_history.go
View file @
1beed0f4
...
@@ -63,7 +63,6 @@ func ControllerRevisionName(prefix string, hash uint32) string {
...
@@ -63,7 +63,6 @@ func ControllerRevisionName(prefix string, hash uint32) string {
func
NewControllerRevision
(
parent
metav1
.
Object
,
func
NewControllerRevision
(
parent
metav1
.
Object
,
parentKind
schema
.
GroupVersionKind
,
parentKind
schema
.
GroupVersionKind
,
podLabels
map
[
string
]
string
,
podLabels
map
[
string
]
string
,
selector
labels
.
Selector
,
data
runtime
.
RawExtension
,
data
runtime
.
RawExtension
,
revision
int64
,
revision
int64
,
collisionCount
*
int32
)
(
*
apps
.
ControllerRevision
,
error
)
{
collisionCount
*
int32
)
(
*
apps
.
ControllerRevision
,
error
)
{
...
...
pkg/controller/history/controller_history_test.go
View file @
1beed0f4
This diff is collapsed.
Click to expand it.
pkg/controller/statefulset/stateful_set_utils.go
View file @
1beed0f4
...
@@ -312,15 +312,10 @@ func newRevision(set *apps.StatefulSet, revision int64, collisionCount *int32) (
...
@@ -312,15 +312,10 @@ func newRevision(set *apps.StatefulSet, revision int64, collisionCount *int32) (
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
selector
,
err
:=
metav1
.
LabelSelectorAsSelector
(
set
.
Spec
.
Selector
)
if
err
!=
nil
{
return
nil
,
err
}
podLabels
:=
set
.
Spec
.
Template
.
Labels
podLabels
:=
set
.
Spec
.
Template
.
Labels
cr
,
err
:=
history
.
NewControllerRevision
(
set
,
cr
,
err
:=
history
.
NewControllerRevision
(
set
,
controllerKind
,
controllerKind
,
podLabels
,
podLabels
,
selector
,
runtime
.
RawExtension
{
Raw
:
patch
},
runtime
.
RawExtension
{
Raw
:
patch
},
revision
,
revision
,
collisionCount
)
collisionCount
)
...
...
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