mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #74574 from SataQiu/fix-golint-20190226
fix some golint failures in pkg/registry/...
This commit is contained in:
commit
5ebdf3e3f2
@ -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
|
||||||
|
@ -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 {
|
|||||||
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 {
|
|||||||
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 {
|
|||||||
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 {
|
|||||||
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 {
|
|||||||
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 {
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user