Documentation ¶
Index ¶
- Constants
- Variables
- func Execute()
- func HelmUpgradeOrInstalTestkube(options HelmUpgradeOrInstalTestkubeOptions) error
- func NewAbortCmd() *cobra.Command
- func NewConfigCmd() *cobra.Command
- func NewCreateCmd() *cobra.Command
- func NewCreateTicketCmd() *cobra.Command
- func NewDashboardCmd() *cobra.Command
- func NewDebugCmd() *cobra.Command
- func NewDeleteCmd() *cobra.Command
- func NewDisableCmd() *cobra.Command
- func NewDownloadAllArtifactsCmd() *cobra.Command
- func NewDownloadCmd() *cobra.Command
- func NewDownloadSingleArtifactsCmd() *cobra.Command
- func NewEnableCmd() *cobra.Command
- func NewGenerateCmd() *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewListArtifactsCmd() *cobra.Command
- func NewMigrateCmd() *cobra.Command
- func NewPurgeCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewUpdateCmd() *cobra.Command
- func NewUpgradeCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- func NewWatchCmd() *cobra.Command
- func PopulateUpgradeInstallFlags(cmd *cobra.Command, options *HelmUpgradeOrInstalTestkubeOptions)
- func RunMigrations(cmd *cobra.Command) (hasMigrations bool, err error)
- type HelmUpgradeOrInstalTestkubeOptions
Constants ¶
View Source
const ( ApiServerName string = "testkube-api-server" ApiServerPort int = 8088 ApiVersion string = "v1" DashboardURI string = "http://dashboard.testkube.io" CurrentApiVersion string = apiclient.Version DashboardName string = "testkube-dashboard" DashboardPort int = 80 DashboardLocalPort int = 8080 )
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "kubectl-testkube", Short: "Testkube entrypoint for kubectl plugin", PersistentPostRun: func(cmd *cobra.Command, args []string) { ui.SetVerbose(verbose) cfg, _ := config.Load() if cfg.TelemetryEnabled { ui.Debug("collecting anonymous telemetry data, you can disable it by calling `kubectl testkube disable telemetry`") out, err := telemetry.SendCmdEvent(cmd, common.Version) if ui.Verbose && err != nil { ui.Err(err) } ui.Debug("telemetry send event response", out) cfg, err := config.Load() ui.WarnOnError("loading config", err) if !cfg.Initialized { cfg.SetInitialized() err := config.Save(cfg) ui.WarnOnError("saving config", err) ui.Debug("sending 'init' event") out, err := telemetry.SendCmdInitEvent(cmd, common.Version) if ui.Verbose && err != nil { ui.Err(err) } ui.Debug("telemetry init event response", out) } } }, Run: func(cmd *cobra.Command, args []string) { ui.Logo() err := cmd.Usage() ui.PrintOnError("Displaying usage", err) cmd.DisableAutoGenTag = true }, }
Functions ¶
func HelmUpgradeOrInstalTestkube ¶ added in v0.9.0
func HelmUpgradeOrInstalTestkube(options HelmUpgradeOrInstalTestkubeOptions) error
func NewAbortCmd ¶ added in v0.10.0
func NewConfigCmd ¶ added in v0.10.5
func NewCreateCmd ¶ added in v0.10.0
func NewCreateTicketCmd ¶ added in v1.4.6
func NewDashboardCmd ¶ added in v0.5.52
NewDashboardCmd is a method to create new dashboard command
func NewDebugCmd ¶ added in v1.3.45
NewDebugCmd creates the 'testkube debug' command
func NewDeleteCmd ¶ added in v0.10.0
func NewDisableCmd ¶ added in v0.10.0
func NewDownloadAllArtifactsCmd ¶ added in v0.6.29
func NewDownloadCmd ¶ added in v0.10.0
func NewDownloadSingleArtifactsCmd ¶ added in v0.6.29
func NewEnableCmd ¶ added in v0.10.0
func NewGenerateCmd ¶ added in v0.10.0
func NewInitCmd ¶ added in v1.5.2
func NewListArtifactsCmd ¶ added in v0.6.9
func NewMigrateCmd ¶ added in v0.8.9
func NewPurgeCmd ¶ added in v1.5.2
func NewStatusCmd ¶ added in v0.10.0
func NewUpdateCmd ¶ added in v0.10.0
func NewUpgradeCmd ¶ added in v0.9.0
func NewVersionCmd ¶
func NewWatchCmd ¶ added in v0.10.0
func PopulateUpgradeInstallFlags ¶ added in v0.11.5
func PopulateUpgradeInstallFlags(cmd *cobra.Command, options *HelmUpgradeOrInstalTestkubeOptions)
Types ¶
type HelmUpgradeOrInstalTestkubeOptions ¶ added in v0.11.5
Source Files ¶
Click to show internal directories.
Click to hide internal directories.