Skip to content

Commit

Permalink
Merge pull request #4428 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…4427-to-release-1.12

[release-1.12] fix envtest setup flake
  • Loading branch information
k8s-ci-robot authored Jan 3, 2024
2 parents 104a710 + 7c7ae3f commit 2abe923
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/test/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/envtest"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
)

var (
Expand Down Expand Up @@ -102,6 +103,9 @@ func NewTestEnvironment() *TestEnvironment {

mgr, err := manager.New(env.Config, manager.Options{
Scheme: scheme,
Metrics: server.Options{
BindAddress: "0",
},
})
if err != nil {
klog.Fatalf("Failed to start testenv manager: %v", err)
Expand Down

0 comments on commit 2abe923

Please sign in to comment.