Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "k8s", Short: "cli for deploying and running import commands in kubernetes cluster", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { if err := cli.PreRunLogger(cmd); err != nil { return errors.Errorf("error in executing pre run %s", err) } kcfg, _ := cmd.Flags().GetString("kubeconfig") if len(kcfg) == 0 { return nil } client, err := connectTok8s() if err != nil { return errors.Errorf("error in getting kubernetes client %s", err) } registry.SetKubeClient(registry.KubeClientKey, client) return nil }, RunE: func(cmd *cobra.Command, args []string) error { if err := cli.RunDoc(cmd); err != nil { return errors.Errorf("error in generating docs %s", err) } return nil }, }
RootCmd represents the base command when called without any subcommands
View Source
var SubCmd = &cobra.Command{
Use: "run",
Short: "subcommand for deploying kubernetes manifest",
}
JobCmd is the base subcommand for grouping all commands that deploy kubernetes job manifest
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.