addon

package
v1.2.35-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "addon ID",
	Aliases: []string{"addons", "add-on", "add-ons"},
	Short:   "Edit add-on installation parameters on cluster",
	Long:    "Edit the parameters on installed Red Hat managed add-ons on a cluster",
	Example: `  # Edit the parameters of the Red Hat OpenShift logging operator add-on installation
  rosa edit addon --cluster=mycluster cluster-logging-operator`,
	Run:                run,
	DisableFlagParsing: true,
	Args: func(cmd *cobra.Command, argv []string) error {
		err := cmd.ParseFlags(argv)
		if err != nil {
			return err
		}
		if len(argv) > 0 && (strings.HasPrefix(argv[0], "--") || strings.HasPrefix(argv[0], "-")) {
			return fmt.Errorf("Expected exactly one command line parameter containing the id of the add-on")
		}

		err = arguments.ParseUnknownFlags(cmd, argv)
		if err != nil {
			return err
		}

		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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