Skip to content

Commit

Permalink
Fix HpaMetricSpec to be a pointer for conversion func
Browse files Browse the repository at this point in the history
  • Loading branch information
voelzmo committed Aug 8, 2023
1 parent 2a6cd31 commit 19ca980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/hpa_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (r *HvpaReconciler) Convert_v2_HPA_to_v2beta1(in *autoscalingv2.HorizontalP
func (r *HvpaReconciler) Convert_v2beta1_MetricSpec_to_v2(err error, in autoscaling.MetricSpec) (*autoscalingv2.MetricSpec, error) {
out := &autoscalingv2.MetricSpec{}
internalHpaMetricSpec := &kubernetesinternalautoscaling.MetricSpec{}
err = r.Scheme.Convert(in, internalHpaMetricSpec, context.TODO())
err = r.Scheme.Convert(&in, internalHpaMetricSpec, context.TODO())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 19ca980

Please sign in to comment.