Skip to content

Commit

Permalink
installer: do not log stacktrace when installer pod fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Sep 9, 2020
1 parent b4f9ae5 commit 60c31b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/operator/staticpod/installerpod/cmd.go
Expand Up @@ -78,16 +78,16 @@ func NewInstaller() *cobra.Command {
klog.V(1).Info(spew.Sdump(o))

if err := o.Complete(); err != nil {
klog.Fatal(err)
klog.Exit(err)
}
if err := o.Validate(); err != nil {
klog.Fatal(err)
klog.Exit(err)
}

ctx, cancel := context.WithTimeout(context.TODO(), o.Timeout)
defer cancel()
if err := o.Run(ctx); err != nil {
klog.Fatal(err)
klog.Exit(err)
}
},
}
Expand Down

0 comments on commit 60c31b9

Please sign in to comment.