service

package
v1.2.48-rc3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "managed-service",
	Aliases: []string{"appliance", "service"},
	Short:   "Creates a managed service.",
	Long: `  Managed Services are OpenShift clusters that provide a specific function.
  Use this command to create managed services.`,
	Example: `  # Create a Managed Service of type service1.
  rosa create managed-service --type=service1 --name=clusterName`,
	Run:                run,
	Hidden:             true,
	DisableFlagParsing: true,
	Args: func(cmd *cobra.Command, argv []string) error {
		flags := cmd.Flags()
		knownFlags = make(map[string]struct{})
		flags.VisitAll(func(flag *pflag.Flag) {
			knownFlags[flag.Name] = struct{}{}
		})

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

		if len(cmd.Flags().Args()) > 0 {
			return fmt.Errorf("Unrecognized command line parameter")
		}
		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