Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#115 from newrelic-forks/rudoi/logs
Browse files Browse the repository at this point in the history
chore: initialize klog flags
  • Loading branch information
k8s-ci-robot authored Aug 12, 2019
2 parents f1d5b73 + cbcb445 commit dc6e6a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.")
Expand Down

0 comments on commit dc6e6a4

Please sign in to comment.