cli

package
v0.1.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitSuccess is the exit code indicating that the application exited with no error.
	ExitSuccess = iota
	// ExitErrParseCLIArgs is the exit code indicating that the application exited due to an error parsing CLI arguments.
	ExitErrParseCLIArgs
	// ExitErrLoadOperatorConfig indicates that the application exited due to an error loading the operator configuration.
	ExitErrLoadOperatorConfig
	// ExitErrSynchronizeTopology indicates that the application exited due to an error synchronizing the cluster topology.
	ExitErrSynchronizeTopology
	// ExitErrInitializeManager indicates that the application exited due to an error initializing the manager.
	// This includes registration of controllers and webhooks and setting up probes.
	ExitErrInitializeManager
	// ExitErrStart indicates that the application exited due to an error when starting the application.
	ExitErrStart
	// ExitErrMNNVLPrerequisites indicates that the application exited because MNNVL prerequisites are not met.
	ExitErrMNNVLPrerequisites
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LaunchOptions

type LaunchOptions struct {
	// ConfigFile is the path to the operator configuration file.
	ConfigFile string
	// Version indicates whether to print the operator version and exit.
	Version bool
}

LaunchOptions defines options for launching the operator.

func ParseLaunchOptions

func ParseLaunchOptions(cliArgs []string) (*LaunchOptions, error)

ParseLaunchOptions parses the CLI arguments for the operator.

func (*LaunchOptions) LoadAndValidateOperatorConfig

func (o *LaunchOptions) LoadAndValidateOperatorConfig() (*configv1alpha1.OperatorConfiguration, error)

LoadAndValidateOperatorConfig loads and validates the operator configuration from the specified path in the launch options.

Jump to

Keyboard shortcuts

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