Skip to content

Commit 20b76a2

Browse files
authored
Merge pull request kubernetes#77002 from SataQiu/fix-golint-apis-networking
Fix golint failures of pkg/apis/networking
2 parents 1a325db + 73ec7ad commit 20b76a2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

hack/.golint_failures

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ pkg/apis/core/validation
3838
pkg/apis/events/v1beta1
3939
pkg/apis/extensions
4040
pkg/apis/extensions/v1beta1
41-
pkg/apis/networking
4241
pkg/apis/networking/v1
4342
pkg/apis/node/v1alpha1
4443
pkg/apis/policy

pkg/apis/networking/register.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
3838
}
3939

4040
var (
41+
// SchemeBuilder points to a list of functions added to Scheme.
4142
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
42-
AddToScheme = SchemeBuilder.AddToScheme
43+
// AddToScheme applies all the stored functions to the scheme.
44+
AddToScheme = SchemeBuilder.AddToScheme
4345
)
4446

4547
func addKnownTypes(scheme *runtime.Scheme) error {

pkg/apis/networking/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type NetworkPolicy struct {
3636
Spec NetworkPolicySpec
3737
}
3838

39-
// Policy Type string describes the NetworkPolicy type
39+
// PolicyType describes the NetworkPolicy type
4040
// This type is beta-level in 1.8
4141
type PolicyType string
4242

0 commit comments

Comments
 (0)