Skip to content

Commit

Permalink
Merge pull request kubernetes#79960 from tedyu/desc-ref
Browse files Browse the repository at this point in the history
Remove incorrect ampersand in front of AverageValue in describeHorizontalPodAutoscalerV2beta2
  • Loading branch information
k8s-ci-robot authored Jul 10, 2019
2 parents d74ec66 + 062b503 commit ca43c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubectl/describe/versioned/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3167,7 +3167,7 @@ func describeHorizontalPodAutoscalerV2beta2(hpa *autoscalingv2beta2.HorizontalPo
if metric.External.Target.AverageValue != nil {
current := "<unknown>"
if len(hpa.Status.CurrentMetrics) > i && hpa.Status.CurrentMetrics[i].External != nil &&
&hpa.Status.CurrentMetrics[i].External.Current.AverageValue != nil {
hpa.Status.CurrentMetrics[i].External.Current.AverageValue != nil {
current = hpa.Status.CurrentMetrics[i].External.Current.AverageValue.String()
}
w.Write(LEVEL_1, "%q (target average value):\t%s / %s\n", metric.External.Metric.Name, current, metric.External.Target.AverageValue.String())
Expand Down

0 comments on commit ca43c67

Please sign in to comment.