Skip to content

Commit

Permalink
add api version
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Oct 2, 2018
1 parent fa10e8f commit 208ca4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ func CreateAutoscaler(sp *serviceprovider.Container, autoscalerInfo entity.Autos
},
Spec: v2beta1.HorizontalPodAutoscalerSpec{
ScaleTargetRef: v2beta1.CrossVersionObjectReference{
Kind: "Deployment",
Name: autoscalerInfo.ScaleTargetRefName,
APIVersion: "apps/v1",
Kind: "Deployment",
Name: autoscalerInfo.ScaleTargetRefName,
},
MinReplicas: &autoscalerInfo.MinReplicas,
MaxReplicas: autoscalerInfo.MaxReplicas,
Expand Down

0 comments on commit 208ca4c

Please sign in to comment.