Merge pull request #77002 from SataQiu/fix-golint-apis-networking

Fix golint failures of pkg/apis/networking
This commit is contained in:
Kubernetes Prow Robot 2019-04-24 18:13:18 -07:00 committed by GitHub
commit 20b76a2b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -38,7 +38,6 @@ pkg/apis/core/validation
pkg/apis/events/v1beta1
pkg/apis/extensions
pkg/apis/extensions/v1beta1
pkg/apis/networking
pkg/apis/networking/v1
pkg/apis/node/v1alpha1
pkg/apis/policy

View File

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

View File

@ -36,7 +36,7 @@ type NetworkPolicy struct {
Spec NetworkPolicySpec
}
// Policy Type string describes the NetworkPolicy type
// PolicyType describes the NetworkPolicy type
// This type is beta-level in 1.8
type PolicyType string