fix golint failures of pkg/apis/batch

This commit is contained in:
SataQiu 2019-04-19 18:04:54 +08:00
parent fc545587e4
commit 61478c04d8
3 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,6 @@ pkg/apis/autoscaling/v1
pkg/apis/autoscaling/v2beta1
pkg/apis/autoscaling/v2beta2
pkg/apis/autoscaling/validation
pkg/apis/batch
pkg/apis/batch/v1
pkg/apis/batch/v1beta1
pkg/apis/batch/v2alpha1

View File

@ -38,7 +38,9 @@ func Resource(resource string) schema.GroupResource {
}
var (
// SchemeBuilder points to a list of functions added to Scheme.
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
// AddToScheme applies all the stored functions to the scheme.
AddToScheme = SchemeBuilder.AddToScheme
)

View File

@ -184,6 +184,7 @@ type JobStatus struct {
Failed int32
}
// JobConditionType is a valid value for JobCondition.Type
type JobConditionType string
// These are valid conditions of a job.