Skip to content

Commit

Permalink
HPA scaleTargetRef apiVersion should be consistent with Deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahutterTA committed Mar 11, 2020
1 parent 41c2659 commit a45e0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/controllers/seldondeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func createHpa(podSpec *machinelearningv1.SeldonPodSpec, deploymentName string,
Spec: autoscaling.HorizontalPodAutoscalerSpec{
ScaleTargetRef: autoscaling.CrossVersionObjectReference{
Name: deploymentName,
APIVersion: "extensions/v1beta1",
APIVersion: "apps/v1",
Kind: "Deployment",
},
MaxReplicas: podSpec.HpaSpec.MaxReplicas,
Expand Down

0 comments on commit a45e0c0

Please sign in to comment.