mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Move the SchemeGroupVersion variable into var()
update pull request
This commit is contained in:
parent
5a790bce3b
commit
2dd0ff8c61
@ -24,10 +24,9 @@ import (
|
|||||||
// GroupName is the group name used in this package
|
// GroupName is the group name used in this package
|
||||||
const GroupName = "cloudcontrollermanager.config.k8s.io"
|
const GroupName = "cloudcontrollermanager.config.k8s.io"
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
// SchemeGroupVersion is group version used to register these objects
|
||||||
|
SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
|
||||||
// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
|
// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||||
// AddToScheme is a global function that registers this API group & version to a scheme
|
// AddToScheme is a global function that registers this API group & version to a scheme
|
||||||
|
@ -24,10 +24,9 @@ import (
|
|||||||
// GroupName is the group name use in this package
|
// GroupName is the group name use in this package
|
||||||
const GroupName = "cloudcontrollermanager.config.k8s.io"
|
const GroupName = "cloudcontrollermanager.config.k8s.io"
|
||||||
|
|
||||||
// SchemeGroupVersion is group version used to register these objects
|
|
||||||
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
// GroupName is the group name use in this package
|
||||||
|
SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
|
||||||
// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
|
// SchemeBuilder is the scheme builder with scheme init functions to run for this API package
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||||
// localSchemeBuilder ïs a pointer to SchemeBuilder instance. Using localSchemeBuilder
|
// localSchemeBuilder ïs a pointer to SchemeBuilder instance. Using localSchemeBuilder
|
||||||
|
Loading…
Reference in New Issue
Block a user