Skip to content

Commit

Permalink
scaffold/v2/group: fix comment capitalization for golint
Browse files Browse the repository at this point in the history
  • Loading branch information
abursavich committed May 19, 2019
1 parent 91533c0 commit a28e6c1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions designs/simplified-scaffolding.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ import (
var (
GroupVersion = schema.GroupVersion{Group: "mygroup.test.k8s.io", Version: "v1"}

// schemeBuilder is used to add go types to the GroupVersionKind scheme
schemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
AddToScheme = SchemeBuilder.AddToScheme
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "batch.tutorial.kubebuilder.io", Version: "v1"}

// schemeBuilder is used to add go types to the GroupVersionKind scheme
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
Expand Down
2 changes: 1 addition & 1 deletion pkg/scaffold/v2/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "{{ .Resource.Group }}.{{ .Domain }}", Version: "{{ .Resource.Version }}"}
// schemeBuilder is used to add go types to the GroupVersionKind scheme
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
// AddToScheme adds the types in this group-version to the given scheme.
Expand Down
2 changes: 1 addition & 1 deletion testdata/project-v2/api/v1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "crew.testproject.org", Version: "v1"}

// schemeBuilder is used to add go types to the GroupVersionKind scheme
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

// AddToScheme adds the types in this group-version to the given scheme.
Expand Down

0 comments on commit a28e6c1

Please sign in to comment.