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