mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 04:36:00 +00:00
Merge pull request #68195 from luxas/consolidate_componentconfig_code_standards
Automatic merge from submit-queue (batch tested with PRs 67950, 68195). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. Consolidate componentconfig code standards **What this PR does / why we need it**: This PR fixes a bunch of very small misalignments in ComponentConfig packages: - Add sane comments to all functions/variables in componentconfig `register.go` files - Make the `register.go` files of componentconfig pkgs follow the same pattern and not differ from each other like they do today. - Register the `openapi-gen` tag in all `doc.go` files where the pkg contains _external_ types. - Add the `groupName` tag where missing - Fix cases where `addKnownTypes` was registered twice in the `SchemeBuilder` - Add `Readme` and `OWNERS` files to `Godeps` directories if missing. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /assign @sttts @thockin
This commit is contained in:
@@ -21,7 +21,7 @@ import (
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
// GroupName is the group name use in this package
|
||||
// GroupName is the group name used in this package
|
||||
const GroupName = "cloudcontrollermanager.config.k8s.io"
|
||||
|
||||
// SchemeGroupVersion is group version used to register these objects
|
||||
|
@@ -33,7 +33,7 @@ var (
|
||||
// localSchemeBuilder ïs a pointer to SchemeBuilder instance. Using localSchemeBuilder
|
||||
// defaulting and conversion init funcs are registered as well.
|
||||
localSchemeBuilder = &SchemeBuilder
|
||||
// AddToScheme is a global function that registers this API group & version to a schema
|
||||
// AddToScheme is a global function that registers this API group & version to a scheme
|
||||
AddToScheme = localSchemeBuilder.AddToScheme
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user