Skip to content

Commit

Permalink
Update kubetest2 version to include the change in kubernetes-sigs/kub…
Browse files Browse the repository at this point in the history
  • Loading branch information
chizhg committed Feb 23, 2021
1 parent c22fd01 commit 7cd3df9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions cmd/envvarlinter/rules/no_os_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import (
)

// NoOsEnv flags an error if os.Getenv or os.LookupEnv are used.
type NoOsEnv struct {
}
type NoOsEnv struct{}

// NewNoOsEnv creates and returns a NoOsEnv object.
func NewNoOsEnv() *NoOsEnv {
Expand Down
3 changes: 1 addition & 2 deletions cmd/envvarlinter/rules_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import (
)

// RulesMatcher filters out test files.
type RulesMatcher struct {
}
type RulesMatcher struct{}

// GetRules checks path absp and decides whether absp is a test file. It returns true and test type
// for a test file. If path absp should be skipped, it returns false.
Expand Down
3 changes: 1 addition & 2 deletions cmd/testlinter/rules_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ const (
)

// RulesMatcher filters out test files and detects test type.
type RulesMatcher struct {
}
type RulesMatcher struct{}

// GetRules checks path absp and decides whether absp is a test file. It returns true and test type
// for a test file. If path absp should be skipped, it returns false.
Expand Down
2 changes: 1 addition & 1 deletion docker/build-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ENV UPX_VERSION=3.96
ENV YQ_VERSION=3.3.0
ENV BUF_VERSION=v0.36.0
ENV GCLOUD_VERSION=319.0.0
ENV KUBETEST2_VERSION=43699a7ba223ddce766f62ecd7504c7233605710
ENV KUBETEST2_VERSION=9899162ef6f224e6c72e835086b012123aca3d03
ENV BOSKOSCTL_VERSION=c6d730e323f06da1b56dfa14bdab6d7d5dc22e2a

ENV GO111MODULE=on
Expand Down
9 changes: 3 additions & 6 deletions perf/benchmark/security/generate_policies/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ type generator interface {
generate(policyData SecurityPolicy) *authzpb.Rule
}

type operationGenerator struct {
}
type operationGenerator struct{}

func (operationGenerator) generate(policyData SecurityPolicy) *authzpb.Rule {
rule := &authzpb.Rule{}
Expand All @@ -47,8 +46,7 @@ func (operationGenerator) generate(policyData SecurityPolicy) *authzpb.Rule {
return rule
}

type conditionGenerator struct {
}
type conditionGenerator struct{}

func (conditionGenerator) generate(policyData SecurityPolicy) *authzpb.Rule {
rule := &authzpb.Rule{}
Expand All @@ -73,8 +71,7 @@ func (conditionGenerator) generate(policyData SecurityPolicy) *authzpb.Rule {
return rule
}

type sourceGenerator struct {
}
type sourceGenerator struct{}

func (sourceGenerator) generate(policyData SecurityPolicy) *authzpb.Rule {
rule := &authzpb.Rule{}
Expand Down

0 comments on commit 7cd3df9

Please sign in to comment.