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
5ebdf3e3
Unverified
Commit
5ebdf3e3
authored
Feb 26, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 26, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74574 from SataQiu/fix-golint-20190226
fix some golint failures in pkg/registry/...
parents
81ec358d
9e4c8950
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
7 additions
and
7 deletions
+7
-7
.golint_failures
hack/.golint_failures
+0
-7
strategy.go
pkg/registry/apps/daemonset/strategy.go
+1
-0
strategy.go
pkg/registry/apps/deployment/strategy.go
+1
-0
strategy.go
pkg/registry/apps/statefulset/strategy.go
+1
-0
strategy.go
pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go
+1
-0
strategy.go
pkg/registry/batch/cronjob/strategy.go
+1
-0
strategy.go
pkg/registry/core/resourcequota/strategy.go
+1
-0
strategy.go
pkg/registry/policy/poddisruptionbudget/strategy.go
+1
-0
No files found.
hack/.golint_failures
View file @
5ebdf3e3
...
@@ -225,14 +225,11 @@ pkg/quota/v1/evaluator/core
...
@@ -225,14 +225,11 @@ pkg/quota/v1/evaluator/core
pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage
pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage
pkg/registry/admissionregistration/rest
pkg/registry/admissionregistration/rest
pkg/registry/admissionregistration/validatingwebhookconfiguration/storage
pkg/registry/admissionregistration/validatingwebhookconfiguration/storage
pkg/registry/apps/daemonset
pkg/registry/apps/daemonset/storage
pkg/registry/apps/daemonset/storage
pkg/registry/apps/deployment
pkg/registry/apps/deployment/storage
pkg/registry/apps/deployment/storage
pkg/registry/apps/replicaset
pkg/registry/apps/replicaset
pkg/registry/apps/replicaset/storage
pkg/registry/apps/replicaset/storage
pkg/registry/apps/rest
pkg/registry/apps/rest
pkg/registry/apps/statefulset
pkg/registry/apps/statefulset/storage
pkg/registry/apps/statefulset/storage
pkg/registry/auditregistration/rest
pkg/registry/auditregistration/rest
pkg/registry/authentication/rest
pkg/registry/authentication/rest
...
@@ -241,10 +238,8 @@ pkg/registry/authorization/localsubjectaccessreview
...
@@ -241,10 +238,8 @@ pkg/registry/authorization/localsubjectaccessreview
pkg/registry/authorization/rest
pkg/registry/authorization/rest
pkg/registry/authorization/selfsubjectaccessreview
pkg/registry/authorization/selfsubjectaccessreview
pkg/registry/authorization/subjectaccessreview
pkg/registry/authorization/subjectaccessreview
pkg/registry/autoscaling/horizontalpodautoscaler
pkg/registry/autoscaling/horizontalpodautoscaler/storage
pkg/registry/autoscaling/horizontalpodautoscaler/storage
pkg/registry/autoscaling/rest
pkg/registry/autoscaling/rest
pkg/registry/batch/cronjob
pkg/registry/batch/cronjob/storage
pkg/registry/batch/cronjob/storage
pkg/registry/batch/job
pkg/registry/batch/job
pkg/registry/batch/job/storage
pkg/registry/batch/job/storage
...
@@ -271,7 +266,6 @@ pkg/registry/core/pod/rest
...
@@ -271,7 +266,6 @@ pkg/registry/core/pod/rest
pkg/registry/core/podtemplate/storage
pkg/registry/core/podtemplate/storage
pkg/registry/core/replicationcontroller
pkg/registry/core/replicationcontroller
pkg/registry/core/replicationcontroller/storage
pkg/registry/core/replicationcontroller/storage
pkg/registry/core/resourcequota
pkg/registry/core/resourcequota/storage
pkg/registry/core/resourcequota/storage
pkg/registry/core/rest
pkg/registry/core/rest
pkg/registry/core/secret
pkg/registry/core/secret
...
@@ -289,7 +283,6 @@ pkg/registry/extensions/controller/storage
...
@@ -289,7 +283,6 @@ pkg/registry/extensions/controller/storage
pkg/registry/extensions/rest
pkg/registry/extensions/rest
pkg/registry/networking/networkpolicy/storage
pkg/registry/networking/networkpolicy/storage
pkg/registry/networking/rest
pkg/registry/networking/rest
pkg/registry/policy/poddisruptionbudget
pkg/registry/policy/poddisruptionbudget/storage
pkg/registry/policy/poddisruptionbudget/storage
pkg/registry/policy/rest
pkg/registry/policy/rest
pkg/registry/rbac/clusterrole
pkg/registry/rbac/clusterrole
...
...
pkg/registry/apps/daemonset/strategy.go
View file @
5ebdf3e3
...
@@ -166,6 +166,7 @@ type daemonSetStatusStrategy struct {
...
@@ -166,6 +166,7 @@ type daemonSetStatusStrategy struct {
daemonSetStrategy
daemonSetStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
daemonSetStatusStrategy
{
Strategy
}
var
StatusStrategy
=
daemonSetStatusStrategy
{
Strategy
}
func
(
daemonSetStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
func
(
daemonSetStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
...
...
pkg/registry/apps/deployment/strategy.go
View file @
5ebdf3e3
...
@@ -145,6 +145,7 @@ type deploymentStatusStrategy struct {
...
@@ -145,6 +145,7 @@ type deploymentStatusStrategy struct {
deploymentStrategy
deploymentStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
deploymentStatusStrategy
{
Strategy
}
var
StatusStrategy
=
deploymentStatusStrategy
{
Strategy
}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status
...
...
pkg/registry/apps/statefulset/strategy.go
View file @
5ebdf3e3
...
@@ -130,6 +130,7 @@ type statefulSetStatusStrategy struct {
...
@@ -130,6 +130,7 @@ type statefulSetStatusStrategy struct {
statefulSetStrategy
statefulSetStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
statefulSetStatusStrategy
{
Strategy
}
var
StatusStrategy
=
statefulSetStatusStrategy
{
Strategy
}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status
...
...
pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go
View file @
5ebdf3e3
...
@@ -86,6 +86,7 @@ type autoscalerStatusStrategy struct {
...
@@ -86,6 +86,7 @@ type autoscalerStatusStrategy struct {
autoscalerStrategy
autoscalerStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
autoscalerStatusStrategy
{
Strategy
}
var
StatusStrategy
=
autoscalerStatusStrategy
{
Strategy
}
func
(
autoscalerStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
func
(
autoscalerStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
...
...
pkg/registry/batch/cronjob/strategy.go
View file @
5ebdf3e3
...
@@ -118,6 +118,7 @@ type cronJobStatusStrategy struct {
...
@@ -118,6 +118,7 @@ type cronJobStatusStrategy struct {
cronJobStrategy
cronJobStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
cronJobStatusStrategy
{
Strategy
}
var
StatusStrategy
=
cronJobStatusStrategy
{
Strategy
}
func
(
cronJobStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
func
(
cronJobStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
...
...
pkg/registry/core/resourcequota/strategy.go
View file @
5ebdf3e3
...
@@ -87,6 +87,7 @@ type resourcequotaStatusStrategy struct {
...
@@ -87,6 +87,7 @@ type resourcequotaStatusStrategy struct {
resourcequotaStrategy
resourcequotaStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
resourcequotaStatusStrategy
{
Strategy
}
var
StatusStrategy
=
resourcequotaStatusStrategy
{
Strategy
}
func
(
resourcequotaStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
func
(
resourcequotaStatusStrategy
)
PrepareForUpdate
(
ctx
context
.
Context
,
obj
,
old
runtime
.
Object
)
{
...
...
pkg/registry/policy/poddisruptionbudget/strategy.go
View file @
5ebdf3e3
...
@@ -98,6 +98,7 @@ type podDisruptionBudgetStatusStrategy struct {
...
@@ -98,6 +98,7 @@ type podDisruptionBudgetStatusStrategy struct {
podDisruptionBudgetStrategy
podDisruptionBudgetStrategy
}
}
// StatusStrategy is the default logic invoked when updating object status.
var
StatusStrategy
=
podDisruptionBudgetStatusStrategy
{
Strategy
}
var
StatusStrategy
=
podDisruptionBudgetStatusStrategy
{
Strategy
}
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status
...
...
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