Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoadStockCmd = &cobra.Command{ Use: "load-stock", Short: "run stock load command as a kubernetes job in the cluster", Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { labels := cliJob.MetaLabel() labels["subcommand"] = "load-stock" for _, target := range viper.GetStringSlice("targets") { job, err := cliJob.Run( cmd, labels, LoadCommand(target), ) if err != nil { return errors.Errorf("error in running job %s for target %s", err, target) } registry.GetLogger().Infof("deployed job %s for target %s", job.Name, target) } return nil }, }
Functions ¶
func LoadCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.