cmd

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package cmd implements capioperator commands.

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:          "capioperator",
	SilenceUsage: true,
	Short:        "capioperator controls the lifecycle of a Cluster API management cluster",
	Long: LongDesc(`
		Get started with Cluster API using capioperator to create a management cluster,
		install providers, and create templates for your workload cluster.`),
	PersistentPostRunE: func(cmd *cobra.Command, args []string) error {
		return nil
	},
}

RootCmd is capioperator root CLI command.

Functions

func CreateKubeClient added in v0.8.0

func CreateKubeClient(kubeconfigPath, kubeconfigContext string) (ctrlclient.Client, error)

CreateKubeClient creates a kubernetes client from provided kubeconfig and kubecontext.

func Examples

func Examples(s string) string

Examples normalizes a command's examples to follow the conventions.

func Execute

func Execute()

Execute executes the root command.

func LongDesc

func LongDesc(s string) string

LongDesc normalizes a command's long description to follow the conventions.

Types

type Version added in v0.8.0

type Version struct {
	ClientVersion *version.Info `json:"capioperator"`
}

Version provides the version information of CAPI operator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL