options

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	HelperImage string

	MetricsExporterImage string

	ImagePullSecretName string
	ImagePullPolicy     corev1.PullPolicy

	OrchestratorURI              string
	OrchestratorTopologyPassword string
	OrchestratorTopologyUser     string

	JobCompleteSuccessGraceTime time.Duration

	HTTPServeAddr string

	LeaderElectionNamespace string
	LeaderElectionID        string
}

Options is the data structure that contains information about mysql operator configuration

func GetOptions

func GetOptions() *Options

GetOptions returns a singlethon that contains all options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags registers all mysql-operator needed flags

func (*Options) Validate

func (o *Options) Validate() error

Validate validate the command line values

Jump to

Keyboard shortcuts

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