Skip to content

Commit

Permalink
do not print full versions list on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Oct 16, 2024
1 parent a6233ad commit 15c0219
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions operator/pkg/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cli

import (
"fmt"
"github.com/replicatedhq/embedded-cluster/pkg/versions"
"os"

"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -43,14 +44,9 @@ func RootCmd() *cobra.Command {
return nil
},
Run: func(cmd *cobra.Command, args []string) {
err := printVersions()
if err != nil {
setupLog.Error(err, "unable to print versions")
os.Exit(1)
}

zaplog := zap.New(zap.UseDevMode(true))
ctrl.SetLogger(zaplog)
setupLog.Info("Starting manager", "version", versions.Version, "k0sversion", versions.K0sVersion)

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: k8sutil.Scheme(),
Expand Down

0 comments on commit 15c0219

Please sign in to comment.