Unverified Commit 5ebdf3e3 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #74574 from SataQiu/fix-golint-20190226

fix some golint failures in pkg/registry/...
parents 81ec358d 9e4c8950
...@@ -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
......
...@@ -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) {
......
...@@ -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
......
...@@ -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
......
...@@ -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) {
......
...@@ -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) {
......
...@@ -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) {
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment