v1

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, opts Options)

Start starts all related controllers of PolarDB-X. The first parameter ctx is used to control the stop of the controllers. Recommendation is to use the context returned by `ctrl.SetupSignalHandler` to handle signals correctly. The second parameter opts defines the configurable options of controllers.

Currently, these controllers are included:

  1. Controller for PolarDBXCluster (v1)
  2. Controller for XStore (v1)
  3. Controllers for PolarDBXBackup, PolarDBXBinlogBackup (v1)
  4. Controllers for XStoreBackup, XStoreBinlogBackup (v1)
  5. Controllers for PolarDBXBackupSchedule, PolarDBXBinlogBackupSchedule (v1)

Types

type Options

type Options struct {
	Debug bool

	MetricsAddr             string
	ListenPort              int
	WebhookListenPort       int
	LeaderElection          bool
	LeaderElectionNamespace string
	MaxConcurrentReconciles int
	CertDir                 string

	ConfigPath string
}

Jump to

Keyboard shortcuts

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