Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "kube-vault", Short: "A slim sidecar / init container to fetch and renew vault secret leases.", PersistentPreRun: func(cmd *cobra.Command, args []string) { var err error baseLogger = logrus.New() baseLogger.SetFormatter(&logrus.JSONFormatter{ FieldMap: logrus.FieldMap{ logrus.FieldKeyMsg: "message", }, }) err = envconfig.Process("", cfg) if err != nil { baseLogger.Fatalf("Failed to parse env config: %v", err) } if cfg.Verbose { baseLogger.SetLevel(logrus.DebugLevel) } else { baseLogger.SetLevel(logrus.InfoLevel) } client, err = api.NewClient(api.DefaultConfig()) if err != nil { baseLogger.Fatalf("Failed to create vault client: %v", err) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.