Skip to content

Commit

Permalink
Merge pull request #3604 from k0sproject/dependabot/go_modules/github…
Browse files Browse the repository at this point in the history
….com/vmware-tanzu/sonobuoy-0.57.0

Bump github.com/vmware-tanzu/sonobuoy from 0.56.17 to 0.57.0
  • Loading branch information
ncopa authored Oct 23, 2023
2 parents b58a018 + 9a422fb commit cc52799
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ require (
github.com/stretchr/testify v1.8.4
github.com/urfave/cli v1.22.14
github.com/vishvananda/netlink v1.2.1-beta.2
github.com/vmware-tanzu/sonobuoy v0.56.17
github.com/vmware-tanzu/sonobuoy v0.57.0
github.com/weaveworks/footloose v0.0.0-20210208164054-2862489574a3
github.com/zcalusic/sysinfo v1.0.1
go.etcd.io/etcd/api/v3 v3.5.9
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ github.com/vishvananda/netlink v1.2.1-beta.2/go.mod h1:twkDnbuQxJYemMlGd4JFIcuhg
github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0=
github.com/vishvananda/netns v0.0.4 h1:Oeaw1EM2JMxD51g9uhtC0D7erkIjgmj8+JZc26m1YX8=
github.com/vishvananda/netns v0.0.4/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM=
github.com/vmware-tanzu/sonobuoy v0.56.17 h1:X30OozdtWOkvMCOZLb1b/QSeKEBx634py8ArTw8RcFU=
github.com/vmware-tanzu/sonobuoy v0.56.17/go.mod h1:EZay4jbB9SKlkG/ywbmtoe8rWzd0w1eCxuk+tHbBQbM=
github.com/vmware-tanzu/sonobuoy v0.57.0 h1:EhxamEAo9G5PQae0kW9CTmRJ9FQ11Mb8uxBlYvL6EDU=
github.com/vmware-tanzu/sonobuoy v0.57.0/go.mod h1:uHypnxX++i0te9/2AqtMvSqlKt5iLK3b8Ss8wA2YFHQ=
github.com/weppos/publicsuffix-go v0.13.1-0.20210123135404-5fd73613514e/go.mod h1:HYux0V0Zi04bHNwOHy4cXJVz/TQjYonnF6aoYhj+3QE=
github.com/weppos/publicsuffix-go v0.15.1-0.20210511084619-b1f36a2d6c0b h1:FsyNrX12e5BkplJq7wKOLk0+C6LZ+KGXvuEcKUYm5ss=
github.com/weppos/publicsuffix-go v0.15.1-0.20210511084619-b1f36a2d6c0b/go.mod h1:HYux0V0Zi04bHNwOHy4cXJVz/TQjYonnF6aoYhj+3QE=
Expand Down
4 changes: 1 addition & 3 deletions inttest/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

ARCH := $(shell go env GOARCH)
OS := $(shell go env GOOS)
K0S_UPDATE_TO_VERSION ?= $(shell ../k0s version)

SONOBUOY_VERSION ?= 0.56.17
sonobuoy_url = https://github.com/vmware-tanzu/sonobuoy/releases/download/v${SONOBUOY_VERSION}/sonobuoy_${SONOBUOY_VERSION}_$(OS)_$(ARCH).tar.gz
sonobuoy_url = https://github.com/vmware-tanzu/sonobuoy/releases/download/v${sonobuoy_version}/sonobuoy_${sonobuoy_version}_$(OS)_$(ARCH).tar.gz

curl = curl -L --silent

Expand Down
1 change: 1 addition & 0 deletions inttest/Makefile.variables
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sonobuoy_version := 0.57.0
smoketests := \
check-addons \
check-airgap \
Expand Down
8 changes: 4 additions & 4 deletions inttest/toolsuite/operations/sonobuoy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ import (
)

const (
sonobuoyVersion = "0.56.11"
sonobuoyOs = "linux"
sonobuoyArch = "amd64"
sonobuoyOs = "linux"
sonobuoyArch = "amd64"
)

type SonobuoyConfig struct {
Version string
Parameters []string
}

// SonobuoyOperation builds a ClusterOperation that runs a Sonobuoy k8s conformance test
// using the clusters k0s.kubeconfig. Results are stored in the data directory as `results.tar.gz`
func SonobuoyOperation(config SonobuoyConfig) ts.ClusterOperation {
return func(ctx context.Context, data ts.ClusterData) error {
sonobuoyBinary, cleanup, err := downloadSonobuoy(ctx, sonobuoyVersion, sonobuoyOs, sonobuoyArch)
sonobuoyBinary, cleanup, err := downloadSonobuoy(ctx, config.Version, sonobuoyOs, sonobuoyArch)
defer cleanup()

if err != nil {
Expand Down
6 changes: 6 additions & 0 deletions inttest/toolsuite/tests/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
)

type ConformanceConfig struct {
SonobuoyVersion string
KubernetesVersion string
}

Expand All @@ -38,11 +39,15 @@ type ConformanceSuite struct {
var config ConformanceConfig

func init() {
flag.StringVar(&config.SonobuoyVersion, "sonobuoy-version", "", "The sonobuoy version to use")
flag.StringVar(&config.KubernetesVersion, "conformance-kubernetes-version", "", "The kubernetes version of the conformance tests to run")
}

// TestConformanceSuite runs the Sonobuoy conformance tests for a specific k8s version.
func TestConformanceSuite(t *testing.T) {
if config.SonobuoyVersion == "" {
t.Fatal("--sonobuoy-version is a required parameter")
}
if config.KubernetesVersion == "" {
t.Fatal("--conformance-kubernetes-version is a required parameter")
}
Expand All @@ -51,6 +56,7 @@ func TestConformanceSuite(t *testing.T) {
ts.ToolSuite{
Operation: tsops.SonobuoyOperation(
tsops.SonobuoyConfig{
Version: config.SonobuoyVersion,
Parameters: []string{
"--mode=certified-conformance",
"--plugin-env=e2e.E2E_EXTRA_ARGS=\"--ginkgo.v\"",
Expand Down

0 comments on commit cc52799

Please sign in to comment.