Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable metrics server in unit tests
Controller manager should not create metrics server in unti tests, as 8080 port might be already in use when k3d and Redpanda container is created during operator tests. ``` pvcunbinder_test.go:348: Error Trace: /work/src/go/k8s/internal/controller/pvcunbinder/pvcunbinder_test.go:348 /root/go/pkg/mod/golang.org/[email protected]/src/runtime/asm_amd64.s:1695 Error: Received unexpected error: failed to start metrics server: failed to create listener: listen tcp :8080: bind: address already in use Test: TestPVCUnbinder pvcunbinder_test.go:237: Error Trace: /work/src/go/k8s/internal/controller/pvcunbinder/pvcunbinder_test.go:237 Error: Condition never satisfied Test: TestPVCUnbinder ```
- Loading branch information