Skip to content

Commit

Permalink
Merge pull request #34 from port-labs/PORT-5963-k-8-s-exporter-fail-t…
Browse files Browse the repository at this point in the history
…o-start-with-v-parameter

initing the klog.InitFlags from the init() function
  • Loading branch information
yairsimantov20 authored Jan 3, 2024
2 parents 07e908a + edc6c45 commit 28daaa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func initiateHandler(exporterConfig *port.Config, k8sClient *k8s.Client, portCli
}

func main() {
klog.InitFlags(nil)

k8sConfig := k8s.NewKubeConfig()
applicationConfig, err := config.NewConfiguration()
if err != nil {
Expand Down Expand Up @@ -81,5 +79,6 @@ func main() {
}

func init() {
klog.InitFlags(nil)
config.Init()
}

0 comments on commit 28daaa8

Please sign in to comment.