mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #76778 from SataQiu/fix-golint-20190419
Fix golint failures of pkg/apis/autoscaling
This commit is contained in:
commit
0f4b666469
@ -16,7 +16,6 @@ pkg/apis/auditregistration/v1alpha1
|
|||||||
pkg/apis/authentication/v1
|
pkg/apis/authentication/v1
|
||||||
pkg/apis/authorization/v1
|
pkg/apis/authorization/v1
|
||||||
pkg/apis/authorization/validation
|
pkg/apis/authorization/validation
|
||||||
pkg/apis/autoscaling
|
|
||||||
pkg/apis/autoscaling/v1
|
pkg/apis/autoscaling/v1
|
||||||
pkg/apis/autoscaling/v2beta1
|
pkg/apis/autoscaling/v2beta1
|
||||||
pkg/apis/autoscaling/v2beta2
|
pkg/apis/autoscaling/v2beta2
|
||||||
|
@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
// SchemeBuilder points to a list of functions added to Scheme.
|
||||||
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
|
||||||
AddToScheme = SchemeBuilder.AddToScheme
|
// AddToScheme applies all the stored functions to the scheme.
|
||||||
|
AddToScheme = SchemeBuilder.AddToScheme
|
||||||
)
|
)
|
||||||
|
|
||||||
// Adds the list of known types to the given scheme.
|
// Adds the list of known types to the given scheme.
|
||||||
|
@ -226,8 +226,11 @@ type MetricTarget struct {
|
|||||||
type MetricTargetType string
|
type MetricTargetType string
|
||||||
|
|
||||||
var (
|
var (
|
||||||
UtilizationMetricType MetricTargetType = "Utilization"
|
// UtilizationMetricType is a possible value for MetricTarget.Type.
|
||||||
ValueMetricType MetricTargetType = "Value"
|
UtilizationMetricType MetricTargetType = "Utilization"
|
||||||
|
// ValueMetricType is a possible value for MetricTarget.Type.
|
||||||
|
ValueMetricType MetricTargetType = "Value"
|
||||||
|
// AverageValueMetricType is a possible value for MetricTarget.Type.
|
||||||
AverageValueMetricType MetricTargetType = "AverageValue"
|
AverageValueMetricType MetricTargetType = "AverageValue"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -373,6 +376,7 @@ type ExternalMetricStatus struct {
|
|||||||
Current MetricValueStatus
|
Current MetricValueStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MetricValueStatus indicates the current value of a metric.
|
||||||
type MetricValueStatus struct {
|
type MetricValueStatus struct {
|
||||||
Value *resource.Quantity
|
Value *resource.Quantity
|
||||||
AverageValue *resource.Quantity
|
AverageValue *resource.Quantity
|
||||||
|
Loading…
Reference in New Issue
Block a user