Fix golint issues in pkg/registry/.../storage

This commit is contained in:
Roy Hvaara
2019-11-10 00:22:51 +01:00
parent a258243f4c
commit cfc34712c2
14 changed files with 28 additions and 25 deletions

View File

@@ -28,12 +28,12 @@ import (
"k8s.io/kubernetes/pkg/registry/networking/networkpolicy"
)
// rest implements a RESTStorage for NetworkPolicies against etcd
// REST implements a RESTStorage for NetworkPolicies against etcd.
type REST struct {
*genericregistry.Store
}
// NewREST returns a RESTStorage object that will work against NetworkPolicies
// NewREST returns a RESTStorage object that will work against NetworkPolicies.
func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
store := &genericregistry.Store{
NewFunc: func() runtime.Object { return &networkingapi.NetworkPolicy{} },