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.
Click to show internal directories.
Click to hide internal directories.