logs: create separate test/integration directory

The benchmark depends on k8s.io/api (for v1.Container). Such a dependency is
not desirable for k8s.io/component-base/logs, even if it's just for
testing. The solution is to create a separate directory where such a dependency
isn't a problem.

The alternative, a separate package with its own go.mod file under
k8s.io/component-base/logs wouldd have been more complicated to maintain (yet
another go.mod file and different whitelisted dependencies).
This commit is contained in:
Patrick Ohly
2021-11-30 14:53:46 +01:00
parent 8e2f03d336
commit 072859c967
14 changed files with 15 additions and 1 deletions

2
vendor/modules.txt vendored
View File

@@ -254,6 +254,7 @@ github.com/fvbommel/sortorder
# github.com/go-errors/errors v1.0.1 => github.com/go-errors/errors v1.0.1
github.com/go-errors/errors
# github.com/go-logr/logr v1.2.0 => github.com/go-logr/logr v1.2.0
## explicit
github.com/go-logr/logr
# github.com/go-logr/zapr v1.2.0 => github.com/go-logr/zapr v1.2.0
github.com/go-logr/zapr
@@ -932,6 +933,7 @@ go.uber.org/atomic
# go.uber.org/multierr v1.6.0 => go.uber.org/multierr v1.6.0
go.uber.org/multierr
# go.uber.org/zap v1.19.0 => go.uber.org/zap v1.19.0
## explicit
go.uber.org/zap
go.uber.org/zap/buffer
go.uber.org/zap/internal/bufferpool