Skip to content

Commit

Permalink
chore(vendor): bump kind to latest
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Grasso <[email protected]>
  • Loading branch information
leogr authored and leodido committed Sep 21, 2019
1 parent cf601fb commit 1453f70
Show file tree
Hide file tree
Showing 454 changed files with 56,392 additions and 14,940 deletions.
29 changes: 8 additions & 21 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,48 +15,35 @@ require (
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
github.com/elazarl/goproxy v0.0.0-20190410145444-c548f45dcf1d // indirect
github.com/elazarl/goproxy/ext v0.0.0-20190410145444-c548f45dcf1d // indirect
github.com/evanphx/json-patch v4.1.0+incompatible // indirect
github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect
github.com/fntlnz/mountinfo v0.0.0-20171106231217-40cb42681fad
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-check/check v0.0.0-20180628173108-788fd7840127
github.com/go-openapi/spec v0.18.0 // indirect
github.com/gogo/protobuf v1.2.1 // indirect
github.com/golang/protobuf v1.3.1 // indirect
github.com/golang/lint v0.0.0-20180702182130-06c8688daad7 // indirect
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c // indirect
github.com/google/go-cmp v0.2.0 // indirect
github.com/google/gofuzz v1.0.0 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/gregjones/httpcache v0.0.0-20181110185634-c63ab54fda8f // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/json-iterator/go v1.1.6 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/jteeuwen/go-bindata v0.0.0-20180305030458-6025e8de665b // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
github.com/pborman/uuid v1.2.0 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/sirupsen/logrus v1.3.0 // indirect
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3
github.com/stretchr/testify v1.3.0 // indirect
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a // indirect
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 // indirect
golang.org/x/lint v0.0.0-20180702182130-06c8688daad7 // indirect
golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890 // indirect
golang.org/x/sys v0.0.0-20190412213103-97732733099d // indirect
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c // indirect
google.golang.org/appengine v1.5.0 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.2.2 // indirect
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
gotest.tools v2.2.0+incompatible
k8s.io/api v0.0.0-20190409021203-6e4e0e4f393b
k8s.io/apimachinery v0.0.0-20190404173353-6a84e37a896d
k8s.io/cli-runtime v0.0.0-20190409023024-d644b00f3b79
k8s.io/client-go v11.0.0+incompatible
k8s.io/klog v0.3.0 // indirect
k8s.io/kube-openapi v0.0.0-20190401085232-94e1e7b7574c // indirect
k8s.io/code-generator v0.0.0-20181116211957-405721ab9678 // indirect
k8s.io/kubernetes v1.14.1
k8s.io/utils v0.0.0-20190308190857-21c4ce38f2a7 // indirect
sigs.k8s.io/kind v0.0.0-20190405235428-578ac5843ea3
sigs.k8s.io/kind v0.5.1
sigs.k8s.io/kustomize v2.0.3+incompatible // indirect
)
79 changes: 79 additions & 0 deletions go.sum

Large diffs are not rendered by default.

28 changes: 18 additions & 10 deletions integration/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"crypto/rand"
"fmt"
"os"
"path/filepath"
"strings"
"testing"
"time"
Expand All @@ -12,8 +13,9 @@ import (
"github.com/iovisor/kubectl-trace/pkg/cmd"
"gotest.tools/icmd"
"sigs.k8s.io/kind/pkg/cluster"
"sigs.k8s.io/kind/pkg/cluster/config/encoding"
"sigs.k8s.io/kind/pkg/cluster/create"
"sigs.k8s.io/kind/pkg/container/docker"
"sigs.k8s.io/kind/pkg/fs"
)

var (
Expand All @@ -34,28 +36,34 @@ func init() {
}

func (k *KubectlTraceSuite) SetUpSuite(c *check.C) {
cfg, err := encoding.Load("")
c.Assert(err, check.IsNil)
err = cfg.Validate()
c.Assert(err, check.IsNil)

clusterName, err := generateClusterName()
c.Assert(err, check.IsNil)
kctx := cluster.NewContext(clusterName)

err = kctx.Create(cfg, create.Retain(false), create.WaitForReady(time.Duration(0)))
err = kctx.Create(create.Retain(false), create.WaitForReady(time.Duration(0)))
c.Assert(err, check.IsNil)
k.kindContext = kctx

nodes, err := kctx.ListNodes()

c.Assert(err, check.IsNil)

// copy the bpftrace into a tar
dir, err := fs.TempDir("", "image-tar")
c.Assert(err, check.IsNil)
defer os.RemoveAll(dir)
imageTarPath := filepath.Join(dir, "image.tar")

err = docker.Save(cmd.ImageNameTag, imageTarPath)
c.Assert(err, check.IsNil)

f, err := os.Open(imageTarPath)
c.Assert(err, check.IsNil)

// copy the bpftrace image to the nodes
for _, n := range nodes {
loadcomm := fmt.Sprintf("docker save %s | docker exec -i %s docker load", cmd.ImageNameTag, n.String())
res := icmd.RunCommand("bash", "-c", loadcomm)
c.Assert(res.Error, check.IsNil)
err = n.LoadImageArchive(f)
c.Assert(err, check.IsNil)
}
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1453f70

Please sign in to comment.