fix some golint failures of pkg/registry

This commit is contained in:
SataQiu
2019-06-05 15:29:59 +08:00
parent 88f8c785b4
commit 213d07af8d
7 changed files with 11 additions and 10 deletions

View File

@@ -78,6 +78,7 @@ type StatusREST struct {
store *genericregistry.Store
}
// New creates a new CronJob object.
func (r *StatusREST) New() runtime.Object {
return &batch.CronJob{}
}

View File

@@ -37,6 +37,7 @@ type JobStorage struct {
Status *StatusREST
}
// NewStorage creates a new JobStorage against etcd.
func NewStorage(optsGetter generic.RESTOptionsGetter) JobStorage {
jobRest, jobStatusRest := NewREST(optsGetter)
@@ -89,6 +90,7 @@ type StatusREST struct {
store *genericregistry.Store
}
// New creates a new Job object.
func (r *StatusREST) New() runtime.Object {
return &batch.Job{}
}