Documentation ¶
Index ¶
- func GetFnCommand(ctx context.Context, name string) *cobra.Command
- func GetKptCommands(ctx context.Context, name, version string) []*cobra.Command
- func GetLiveCommand(ctx context.Context, _, version string) *cobra.Command
- func GetPkgCommand(ctx context.Context, name string) *cobra.Command
- func NewCmdInstallRG(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NormalizeCommand(c ...*cobra.Command)
- type InstallRGRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKptCommands ¶
GetKptCommands returns the set of kpt commands to be registered
func NewCmdInstallRG ¶ added in v0.38.0
NewCmdInstallRG returns the cobra command for the install-resource-group command.
func NormalizeCommand ¶
NormalizeCommand will modify commands to be consistent, e.g. silencing errors
Types ¶
type InstallRGRunner ¶ added in v0.38.0
InstallRGRunner encapsulates fields for the kpt live install-resource-group command.
func GetInstallRGRunner ¶ added in v0.38.0
func GetInstallRGRunner(factory cmdutil.Factory, ioStreams genericclioptions.IOStreams) *InstallRGRunner
GetInstallRGRunner returns a pointer to an initial InstallRGRunner structure.
func (*InstallRGRunner) Run ¶ added in v0.38.0
func (ir *InstallRGRunner) Run(reader io.Reader, args []string) error
Run executes the installation of the ResourceGroup custom resource definition. Uses the current context of the kube config file (or the kube config flags) to determine the APIServer to install the CRD.
Click to show internal directories.
Click to hide internal directories.