Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit dc6e6a4

Browse files
authored
Merge pull request #115 from newrelic-forks/rudoi/logs
chore: initialize klog flags
2 parents f1d5b73 + cbcb445 commit dc6e6a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"k8s.io/apimachinery/pkg/runtime"
2424
"k8s.io/client-go/kubernetes/scheme"
2525
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
26+
"k8s.io/klog"
2627
"k8s.io/klog/klogr"
2728
"sigs.k8s.io/cluster-api-bootstrap-provider-kubeadm/api/v1alpha2"
2829
"sigs.k8s.io/cluster-api-bootstrap-provider-kubeadm/controllers"
@@ -44,6 +45,8 @@ func init() {
4445
}
4546

4647
func main() {
48+
klog.InitFlags(nil)
49+
4750
var metricsAddr string
4851
var enableLeaderElection bool
4952
flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")

0 commit comments

Comments
 (0)