diff --git a/designs/simplified-scaffolding.md b/designs/simplified-scaffolding.md index 1790ef3d707..7c15582a4bf 100644 --- a/designs/simplified-scaffolding.md +++ b/designs/simplified-scaffolding.md @@ -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 diff --git a/docs/book/src/cronjob-tutorial/testdata/project/api/v1/groupversion_info.go b/docs/book/src/cronjob-tutorial/testdata/project/api/v1/groupversion_info.go index 7c9e12a7f10..8c72f3919c1 100644 --- a/docs/book/src/cronjob-tutorial/testdata/project/api/v1/groupversion_info.go +++ b/docs/book/src/cronjob-tutorial/testdata/project/api/v1/groupversion_info.go @@ -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. diff --git a/pkg/scaffold/v2/group.go b/pkg/scaffold/v2/group.go index db251333a49..1a220eac2bb 100644 --- a/pkg/scaffold/v2/group.go +++ b/pkg/scaffold/v2/group.go @@ -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. diff --git a/testdata/project-v2/api/v1/groupversion_info.go b/testdata/project-v2/api/v1/groupversion_info.go index d755eed98f0..90c7767bb71 100644 --- a/testdata/project-v2/api/v1/groupversion_info.go +++ b/testdata/project-v2/api/v1/groupversion_info.go @@ -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.