Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In e2e tests we can see the following error: [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. Detected at: > goroutine 1 [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/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:60 +0xcd > sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc00027f740, {0x1ef22f6, 0x14}) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:147 +0x45 > github.com/go-logr/logr.Logger.WithName({{0x2208298, 0xc00027f740}, 0x0}, {0x1ef22f6?, 0x0?}) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/github.com/go-logr/logr/logr.go:336 +0x3d > sigs.k8s.io/controller-runtime/pkg/client.newClient(0x0?, {0x0, 0xc0002c2f50, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0}) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:122 +0xec > sigs.k8s.io/controller-runtime/pkg/client.New(0x50?, {0x0, 0xc0002c2f50, {0x0, 0x0}, 0x0, {0x0, 0x0}, 0x0}) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/controller-runtime/pkg/client/client.go:103 +0x7d > sigs.k8s.io/e2e-framework/klient/k8s/resources.New(0xc000804240) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/klient/k8s/resources/resources.go:61 +0x79 > sigs.k8s.io/e2e-framework/klient.New(0xc000804240) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/klient/client.go:51 +0x18 > sigs.k8s.io/e2e-framework/klient.NewWithKubeConfigFile({0xc0000e45c0?, 0x1b232c0?}) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/klient/client.go:64 +0x32 > sigs.k8s.io/e2e-framework/pkg/envconf.(*Config).Client(0xc00007e380) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/pkg/envconf/config.go:137 +0x3c > sigs.k8s.io/e2e-framework/pkg/envfuncs.CreateKindClusterWithConfig.func1({0x2202bc8, 0xc00001fd10}, 0xc00007e380) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/pkg/envfuncs/kind_funcs.go:92 +0x27c > github.com/cilium/tetragon/tests/e2e/runners.glob..func1.MaybeCreateTempKindCluster.func1({0x2202bc8, 0xc00001fd10}, 0x1d34ca0?) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/tests/e2e/helpers/cluster.go:149 +0x17e > sigs.k8s.io/e2e-framework/pkg/env.(*action).run(0xc000285040?, {0x2202bc8?, 0xc00001fd10?}, 0xc00007e380) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/pkg/env/action.go:135 +0xe3 > sigs.k8s.io/e2e-framework/pkg/env.(*testEnv).Run(0xc00027f6c0, 0x0?) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/vendor/sigs.k8s.io/e2e-framework/pkg/env/env.go:369 +0x152 > github.com/cilium/tetragon/tests/e2e/runners.(*Runner).Run(0xc00027f6c0?, 0xc0006063b0?) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/tests/e2e/runners/runners.go:210 +0xc8 > github.com/cilium/tetragon/tests/e2e/tests/labels_test.TestMain(0x1ed51c0?) > /home/runner/work/tetragon/tetragon/go/src/github.com/cilium/tetragon/tests/e2e/tests/labels/labels_test.go:92 +0xeb > main.main() > _testmain.go:83 +0x1e6 Example: https://github.com/cilium/tetragon/actions/runs/6961675044/job/18943783744 This PR fixes that. Signed-off-by: Anastasios Papagiannis <[email protected]>
- Loading branch information