Skip to content

Commit

Permalink
Fix klog init bug after controller-runtime update
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri committed Jan 25, 2019
1 parent ee38e8a commit cd370c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/clusterctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ var RootCmd = &cobra.Command{
Use: "clusterctl",
Short: "cluster management",
Long: `Simple kubernetes cluster management`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
cmd.Flags().Set("logtostderr", "true")
},
Run: func(cmd *cobra.Command, args []string) {
// Do Stuff Here
cmd.Help()
Expand Down
1 change: 1 addition & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (

func main() {
klog.InitFlags(nil)
flag.Set("logtostderr", "true")
flag.Parse()

// Get a config to talk to the apiserver
Expand Down

0 comments on commit cd370c0

Please sign in to comment.