fix some golint failures of pkg/registry
This commit is contained in:
@@ -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{}
|
||||
}
|
||||
|
@@ -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{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user