Skip to content

Commit b4caec7

Browse files
committed
configured logger for controller-runtime
1 parent 29fd804 commit b4caec7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/openshift-install/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
terminal "golang.org/x/term"
1414
"k8s.io/klog"
1515
klogv2 "k8s.io/klog/v2"
16+
ctrl "sigs.k8s.io/controller-runtime"
1617
"sigs.k8s.io/controller-runtime/pkg/manager/signals"
1718

1819
"github.com/openshift/installer/cmd/openshift-install/command"
@@ -33,6 +34,8 @@ func main() {
3334
fsv2.Set("stderrthreshold", "4")
3435
klogv2.SetOutput(io.Discard)
3536

37+
ctrl.SetLogger(klogv2.Background())
38+
3639
installerMain()
3740
}
3841

0 commit comments

Comments
 (0)