mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #79856 from tedyu/metric-stat-ampers
Remove unintended ampersand in front of in.Current.AverageValue
This commit is contained in:
commit
88bac0bd4a
@ -212,9 +212,7 @@ func Convert_v2beta1_PodsMetricSource_To_autoscaling_PodsMetricSource(in *autosc
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Convert_autoscaling_ExternalMetricStatus_To_v2beta1_ExternalMetricStatus(in *autoscaling.ExternalMetricStatus, out *autoscalingv2beta1.ExternalMetricStatus, s conversion.Scope) error {
|
func Convert_autoscaling_ExternalMetricStatus_To_v2beta1_ExternalMetricStatus(in *autoscaling.ExternalMetricStatus, out *autoscalingv2beta1.ExternalMetricStatus, s conversion.Scope) error {
|
||||||
if &in.Current.AverageValue != nil {
|
|
||||||
out.CurrentAverageValue = in.Current.AverageValue
|
out.CurrentAverageValue = in.Current.AverageValue
|
||||||
}
|
|
||||||
out.MetricName = in.Metric.Name
|
out.MetricName = in.Metric.Name
|
||||||
if in.Current.Value != nil {
|
if in.Current.Value != nil {
|
||||||
out.CurrentValue = *in.Current.Value
|
out.CurrentValue = *in.Current.Value
|
||||||
|
Loading…
Reference in New Issue
Block a user