Skip to content

Commit

Permalink
go-getter v2 code change
Browse files Browse the repository at this point in the history
  • Loading branch information
timhuynh94 committed Jul 14, 2023
1 parent 4250068 commit eae4f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/vela-kubernetes/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package main

import (
"context"
"fmt"
"runtime"
"strings"
Expand Down Expand Up @@ -47,7 +48,7 @@ func install(customVer, defaultVer string) error {

logrus.Infof("downloading kubectl version from: %s", url)
// send the HTTP request to install kubectl
err = getter.GetFile(_kubectl, url, []getter.ClientOption{}...)
_, err = getter.GetFile(context.Background(), _kubectl, url)
if err != nil {
return err
}
Expand Down

0 comments on commit eae4f20

Please sign in to comment.