Merge pull request #98017 from lanzao/patch01

Fix golint issues in client/custom_metrics/scheme
This commit is contained in:
Kubernetes Prow Robot 2021-01-15 06:31:51 -08:00 committed by GitHub
commit 294c352380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -456,7 +456,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() {