Unverified Commit 3488cd34 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #76804 from SataQiu/fix-apis-golint-20190419

Fix golint failures of pkg/apis/batch
parents f0a4672e 61478c04
...@@ -22,7 +22,6 @@ pkg/apis/autoscaling/v1 ...@@ -22,7 +22,6 @@ pkg/apis/autoscaling/v1
pkg/apis/autoscaling/v2beta1 pkg/apis/autoscaling/v2beta1
pkg/apis/autoscaling/v2beta2 pkg/apis/autoscaling/v2beta2
pkg/apis/autoscaling/validation pkg/apis/autoscaling/validation
pkg/apis/batch
pkg/apis/batch/v1 pkg/apis/batch/v1
pkg/apis/batch/v1beta1 pkg/apis/batch/v1beta1
pkg/apis/batch/v2alpha1 pkg/apis/batch/v2alpha1
......
...@@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource { ...@@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
} }
var ( var (
// SchemeBuilder points to a list of functions added to Scheme.
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
AddToScheme = SchemeBuilder.AddToScheme // AddToScheme applies all the stored functions to the scheme.
AddToScheme = SchemeBuilder.AddToScheme
) )
// Adds the list of known types to the given scheme. // Adds the list of known types to the given scheme.
......
...@@ -184,6 +184,7 @@ type JobStatus struct { ...@@ -184,6 +184,7 @@ type JobStatus struct {
Failed int32 Failed int32
} }
// JobConditionType is a valid value for JobCondition.Type
type JobConditionType string type JobConditionType string
// These are valid conditions of a job. // These are valid conditions of a job.
......
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