Skip to content

Commit 2b14f5e

Browse files
GIT-119: uptick kind and fix the install mode
1 parent 3467252 commit 2b14f5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

support/kind/kind.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/vladimirvivien/gexe"
3030
)
3131

32-
var kindVersion = "v0.11.0"
32+
var kindVersion = "v0.12.0"
3333

3434
type Cluster struct {
3535
name string
@@ -154,7 +154,7 @@ func (k *Cluster) Destroy() error {
154154

155155
func (k *Cluster) findOrInstallKind(e *gexe.Echo) error {
156156
if e.Prog().Avail("kind") == "" {
157-
log.V(4).Infof(`kind not found, installing with GO111MODULE="on" go get sigs.k8s.io/kind@%s`, kindVersion)
157+
log.V(4).Infof(`kind not found, installing with go install sigs.k8s.io/kind@%s`, kindVersion)
158158
if err := k.installKind(e); err != nil {
159159
return err
160160
}
@@ -167,8 +167,8 @@ func (k *Cluster) installKind(e *gexe.Echo) error {
167167
kindVersion = k.version
168168
}
169169

170-
log.V(4).Infof("Installing: go get sigs.k8s.io/kind@%s", kindVersion)
171-
p := e.SetEnv("GO111MODULE", "on").RunProc(fmt.Sprintf("go get sigs.k8s.io/kind@%s", kindVersion))
170+
log.V(4).Infof("Installing: go install sigs.k8s.io/kind@%s", kindVersion)
171+
p := e.RunProc(fmt.Sprintf("go install sigs.k8s.io/kind@%s", kindVersion))
172172
if p.Err() != nil {
173173
return fmt.Errorf("failed to install kind: %s", p.Err())
174174
}

0 commit comments

Comments
 (0)