Skip to content

Commit 5ebdf3e

Browse files
authored
Merge pull request kubernetes#74574 from SataQiu/fix-golint-20190226
fix some golint failures in pkg/registry/...
2 parents 81ec358 + 9e4c895 commit 5ebdf3e

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

hack/.golint_failures

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,11 @@ pkg/quota/v1/evaluator/core
225225
pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage
226226
pkg/registry/admissionregistration/rest
227227
pkg/registry/admissionregistration/validatingwebhookconfiguration/storage
228-
pkg/registry/apps/daemonset
229228
pkg/registry/apps/daemonset/storage
230-
pkg/registry/apps/deployment
231229
pkg/registry/apps/deployment/storage
232230
pkg/registry/apps/replicaset
233231
pkg/registry/apps/replicaset/storage
234232
pkg/registry/apps/rest
235-
pkg/registry/apps/statefulset
236233
pkg/registry/apps/statefulset/storage
237234
pkg/registry/auditregistration/rest
238235
pkg/registry/authentication/rest
@@ -241,10 +238,8 @@ pkg/registry/authorization/localsubjectaccessreview
241238
pkg/registry/authorization/rest
242239
pkg/registry/authorization/selfsubjectaccessreview
243240
pkg/registry/authorization/subjectaccessreview
244-
pkg/registry/autoscaling/horizontalpodautoscaler
245241
pkg/registry/autoscaling/horizontalpodautoscaler/storage
246242
pkg/registry/autoscaling/rest
247-
pkg/registry/batch/cronjob
248243
pkg/registry/batch/cronjob/storage
249244
pkg/registry/batch/job
250245
pkg/registry/batch/job/storage
@@ -271,7 +266,6 @@ pkg/registry/core/pod/rest
271266
pkg/registry/core/podtemplate/storage
272267
pkg/registry/core/replicationcontroller
273268
pkg/registry/core/replicationcontroller/storage
274-
pkg/registry/core/resourcequota
275269
pkg/registry/core/resourcequota/storage
276270
pkg/registry/core/rest
277271
pkg/registry/core/secret
@@ -289,7 +283,6 @@ pkg/registry/extensions/controller/storage
289283
pkg/registry/extensions/rest
290284
pkg/registry/networking/networkpolicy/storage
291285
pkg/registry/networking/rest
292-
pkg/registry/policy/poddisruptionbudget
293286
pkg/registry/policy/poddisruptionbudget/storage
294287
pkg/registry/policy/rest
295288
pkg/registry/rbac/clusterrole

pkg/registry/apps/daemonset/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ type daemonSetStatusStrategy struct {
166166
daemonSetStrategy
167167
}
168168

169+
// StatusStrategy is the default logic invoked when updating object status.
169170
var StatusStrategy = daemonSetStatusStrategy{Strategy}
170171

171172
func (daemonSetStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {

pkg/registry/apps/deployment/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ type deploymentStatusStrategy struct {
145145
deploymentStrategy
146146
}
147147

148+
// StatusStrategy is the default logic invoked when updating object status.
148149
var StatusStrategy = deploymentStatusStrategy{Strategy}
149150

150151
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status

pkg/registry/apps/statefulset/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ type statefulSetStatusStrategy struct {
130130
statefulSetStrategy
131131
}
132132

133+
// StatusStrategy is the default logic invoked when updating object status.
133134
var StatusStrategy = statefulSetStatusStrategy{Strategy}
134135

135136
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status

pkg/registry/autoscaling/horizontalpodautoscaler/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ type autoscalerStatusStrategy struct {
8686
autoscalerStrategy
8787
}
8888

89+
// StatusStrategy is the default logic invoked when updating object status.
8990
var StatusStrategy = autoscalerStatusStrategy{Strategy}
9091

9192
func (autoscalerStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {

pkg/registry/batch/cronjob/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ type cronJobStatusStrategy struct {
118118
cronJobStrategy
119119
}
120120

121+
// StatusStrategy is the default logic invoked when updating object status.
121122
var StatusStrategy = cronJobStatusStrategy{Strategy}
122123

123124
func (cronJobStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {

pkg/registry/core/resourcequota/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ type resourcequotaStatusStrategy struct {
8787
resourcequotaStrategy
8888
}
8989

90+
// StatusStrategy is the default logic invoked when updating object status.
9091
var StatusStrategy = resourcequotaStatusStrategy{Strategy}
9192

9293
func (resourcequotaStatusStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {

pkg/registry/policy/poddisruptionbudget/strategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ type podDisruptionBudgetStatusStrategy struct {
9898
podDisruptionBudgetStrategy
9999
}
100100

101+
// StatusStrategy is the default logic invoked when updating object status.
101102
var StatusStrategy = podDisruptionBudgetStatusStrategy{Strategy}
102103

103104
// PrepareForUpdate clears fields that are not allowed to be set by end users on update of status

0 commit comments

Comments
 (0)