Fix golint issues in client/custom_metrics/scheme

This commit is contained in:
lanzao 2021-01-13 18:54:26 +08:00
parent a098b5b16c
commit a833a0321c
2 changed files with 7 additions and 1 deletions

View File

@ -457,7 +457,6 @@ staging/src/k8s.io/metrics/pkg/apis/custom_metrics/v1beta1
staging/src/k8s.io/metrics/pkg/apis/external_metrics
staging/src/k8s.io/metrics/pkg/client/custom_metrics
staging/src/k8s.io/metrics/pkg/client/custom_metrics/fake
staging/src/k8s.io/metrics/pkg/client/custom_metrics/scheme
staging/src/k8s.io/metrics/pkg/client/external_metrics
staging/src/k8s.io/metrics/pkg/client/external_metrics/fake
staging/src/k8s.io/mount-utils

View File

@ -26,12 +26,19 @@ import (
cmv1beta2 "k8s.io/metrics/pkg/apis/custom_metrics/v1beta2"
)
// GroupName is the group name use in this package.
const GroupName = cmv1beta1.GroupName
// SchemeGroupVersion is group version used to register these objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
// Scheme is the runtime.Scheme to which all custom metrics api types are registered.
var Scheme = runtime.NewScheme()
// Codecs provides access to encoding and decoding for the scheme.
var Codecs = serializer.NewCodecFactory(Scheme)
// ParameterCodec handles versioning of objects that are converted to query parameters.
var ParameterCodec = runtime.NewParameterCodec(Scheme)
func init() {