Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set controller-runtime logger in inttest
This suppresses log messages like the following: [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. Detected at: > goroutine 48 [running]: > runtime/debug.Stack() > /opt/hostedtoolcache/go/1.21.4/x64/src/runtime/debug/stack.go:24 +0x5e > sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot() > /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/log.go:60 +0xcd > sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc00034c0c0, {0x1b69724, 0x14}) > /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:147 +0x45 > github.com/go-logr/logr.Logger.WithName({{0x1de3cf0, 0xc00034c0c0}, 0x0}, {0x1b69724?, 0x1b57b4c?}) > /home/runner/go/pkg/mod/github.com/go-logr/[email protected]/logr.go:336 +0x3d > sigs.k8s.io/controller-runtime/pkg/client.newClient(0x531cde?, {0x0, 0xc000156540, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0}) > /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/client.go:122 +0xec > sigs.k8s.io/controller-runtime/pkg/client.New(0xc0003f7c70?, {0x0, 0xc000156540, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0}) > /home/runner/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/client/client.go:103 +0x7d > github.com/k0sproject/k0s/inttest/addons.(*AddonsSuite).waitForTestRelease(0xc0004476c0, {0x1b5cb0b, 0xa}, {0x1b588f7, 0x5}, {0x1b59cd3, 0x7}, 0x1) > /home/runner/work/k0s/k0s/inttest/addons/addons_test.go:129 +0x24a > github.com/k0sproject/k0s/inttest/addons.(*AddonsSuite).TestHelmBasedAddons(0xc0004476c0) > /home/runner/work/k0s/k0s/inttest/addons/addons_test.go:57 +0x3b6 > reflect.Value.call({0xc0003b7880?, 0xc00039c718?, 0x13?}, {0x1b583b1, 0x4}, {0xc0000d9e70, 0x1, 0x1?}) > /opt/hostedtoolcache/go/1.21.4/x64/src/reflect/value.go:596 +0xce7 > reflect.Value.Call({0xc0003b7880?, 0xc00039c718?, 0xc0004476c0?}, {0xc000502e70?, 0x52c66d?, 0x2630f58?}) > /opt/hostedtoolcache/go/1.21.4/x64/src/reflect/value.go:380 +0xb9 > github.com/stretchr/testify/suite.Run.func1(0xc0004621a0) > /home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:197 +0x467 > testing.tRunner(0xc0004621a0, 0xc0004081b0) > /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1595 +0xff > created by testing.(*T).Run in goroutine 5 > /opt/hostedtoolcache/go/1.21.4/x64/src/testing/testing.go:1648 +0x3ad Signed-off-by: Tom Wieczorek <[email protected]>
- Loading branch information