Skip to content

Commit

Permalink
fix VPA creation
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmueller committed Jan 23, 2024
1 parent dc8187a commit 541f8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/deploy/rancher2-api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (r *Rancher2) CreateContainer(name string, image string, env map[string]str
}

autoscaleRequest := gorequest.New().SetBasicAuth(r.accessKey, r.secretKey)
resp, body, e = request.Post(r.kubeUrl + "autoscaling.k8s.io.verticalpodautoscalers").Send(autoscaleRequest).End()
resp, body, e = autoscaleRequest.Post(r.kubeUrl + "autoscaling.k8s.io.verticalpodautoscalers").Send(autoscaleRequestBody).End()
if resp.StatusCode != http.StatusCreated && resp.StatusCode != http.StatusConflict {
err = errors.New("could not create import")
fmt.Print(body)
Expand Down

0 comments on commit 541f8e7

Please sign in to comment.