From cbcb445f33a6b9540c643a33cfc06e3c7f37f683 Mon Sep 17 00:00:00 2001 From: Andrew Rudoi Date: Mon, 12 Aug 2019 08:33:23 -0700 Subject: [PATCH] chore: initialize klog flags --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index a1821ffc260e..722335fd7841 100644 --- a/main.go +++ b/main.go @@ -23,6 +23,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/kubernetes/scheme" _ "k8s.io/client-go/plugin/pkg/client/auth/gcp" + "k8s.io/klog" "k8s.io/klog/klogr" "sigs.k8s.io/cluster-api-bootstrap-provider-kubeadm/api/v1alpha2" "sigs.k8s.io/cluster-api-bootstrap-provider-kubeadm/controllers" @@ -44,6 +45,8 @@ func init() { } func main() { + klog.InitFlags(nil) + var metricsAddr string var enableLeaderElection bool flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.")