Skip to content

Commit

Permalink
Merge pull request #2397 from randomvariable/set-kindest-image
Browse files Browse the repository at this point in the history
test: Set kindest image to 1.16 for CRDv1 compat
  • Loading branch information
k8s-ci-robot authored Feb 21, 2020
2 parents 098a911 + 78baff2 commit 19bb154
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/helpers/kind/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ import (
"k8s.io/client-go/tools/clientcmd"
)

const (
kindestImage = "kindest/node:v1.16.4"
)

var (
kindBinary = flag.String("kindBinary", "kind", "path to the kind binary")
kubectlBinary = flag.String("kubectlBinary", "kubectl", "path to the kubectl binary")
Expand All @@ -55,7 +59,7 @@ func (c *Cluster) Setup() {
c.tmpDir, err = ioutil.TempDir("", "kind-home")
ExpectWithOffset(1, err).NotTo(HaveOccurred())
fmt.Fprintf(ginkgo.GinkgoWriter, "creating Kind cluster named %q\n", c.Name)
c.run(exec.Command(*kindBinary, "create", "cluster", "--name", c.Name))
c.run(exec.Command(*kindBinary, "create", "cluster", "--image", kindestImage, "--name", c.Name))
path := c.runWithOutput(exec.Command(*kindBinary, "get", "kubeconfig-path", "--name", c.Name))
c.kubepath = strings.TrimSpace(string(path))
fmt.Fprintf(ginkgo.GinkgoWriter, "kubeconfig path: %q. Can use the following to access the cluster:\n", c.kubepath)
Expand Down

0 comments on commit 19bb154

Please sign in to comment.