setup

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartManager

func StartManager(
	scheme *runtime.Scheme,
	operatorOpts Options,
	logOpts zap.Options,
	clusterReconciler *controllers.FoundationDBClusterReconciler,
	backupReconciler *controllers.FoundationDBBackupReconciler,
	restoreReconciler *controllers.FoundationDBRestoreReconciler,
	logr *log.DelegatingLogger,
	watchedObjects ...client.Object) (manager.Manager, *os.File)

StartManager will start the FoundationDB operator manager. Each reconciler that is not nil will be added to the list of reconcilers For all reconcilers the Client, Recorder and if appropriate the namespace will be set.

Types

type Options

type Options struct {
	MetricsAddr             string
	EnableLeaderElection    bool
	LeaderElectionID        string
	LogFile                 string
	CliTimeout              int
	DeprecationOptions      internal.DeprecationOptions
	MaxConcurrentReconciles int
	CleanUpOldLogFile       bool
	LogFileMinAge           time.Duration
	LogFileMaxSize          int
	LogFileMaxAge           int
	MaxNumberOfOldLogFiles  int
	CompressOldFiles        bool
	PrintVersion            bool
	LabelSelector           string
}

Options provides all configuration Options for the operator

func (*Options) BindFlags

func (o *Options) BindFlags(fs *flag.FlagSet)

BindFlags will parse the given flagset for the operator option flags

Jump to

Keyboard shortcuts

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