From 87c960d69bddad2a0a4d656085d500a3a59d30ae Mon Sep 17 00:00:00 2001 From: "Steven E. Harris" Date: Tue, 16 May 2017 15:50:40 -0400 Subject: [PATCH] Copyedit third-party resource registration example Kubernetes-commit: fe3ca9a6eba9b39a305b8cdffc2fbc7a66b812da --- examples/third-party-resources/apis/tpr/v1/register.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/third-party-resources/apis/tpr/v1/register.go b/examples/third-party-resources/apis/tpr/v1/register.go index 2dd196a4..100484a7 100644 --- a/examples/third-party-resources/apis/tpr/v1/register.go +++ b/examples/third-party-resources/apis/tpr/v1/register.go @@ -27,25 +27,25 @@ var ( AddToScheme = SchemeBuilder.AddToScheme ) -// GroupName is the group name use in this package +// GroupName is the group name use in this package. const GroupName = "tpr.client-go.k8s.io" -// SchemeGroupVersion is group version used to register these objects +// SchemeGroupVersion is the group version used to register these objects. var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} -// Resource takes an unqualified resource and returns a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group-qualified GroupResource. func Resource(resource string) schema.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } func init() { - // We only register manually written functions here. The registration of the + // We only register manually-written functions here. The registration of the // generated functions takes place in the generated files. The separation // makes the code compile even when the generated files are missing. SchemeBuilder.Register(addKnownTypes) } -// Adds the list of known types to api.Scheme. +// addKnownTypes adds the set of types defined in this package to the supplied scheme. func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Example{},