fix some golint failures in pkg/registry/...

pull/564/head
SataQiu 2019-02-26 22:36:52 +08:00
parent 4e8e3c2f02
commit 9e4c8950be
8 changed files with 7 additions and 7 deletions

View File

@ -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
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
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
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

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -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) {

View File

@ -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) {

View File

@ -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