agent

package
v0.0.0-...-146a38b Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: BSD-3-Clause, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMySQLAgentHeathcheckPort is the port on which the mysql-agent's
	// healthcheck service runs on.
	DefaultMySQLAgentHeathcheckPort int32 = 10512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLAgentOpts

type MySQLAgentOpts struct {
	// HealthcheckPort is the port on which the mysql-agent healthcheck http
	// service runs on.
	HealthcheckPort int32

	// Address is the IP address to serve the backon. Set to 0.0.0.0 to listen
	// on all interfaces.
	Address string

	// Namespace is the namespace in which the backup controller (and is
	// associated Cluster) are running.
	Namespace string
	// ClusterName is the name of the Cluster the backup controller
	// is responsible for.
	ClusterName string
	// Hostname of the pod the backup operator is running in.
	Hostname string

	// minResyncPeriod is the resync period in reflectors; will be random
	// between minResyncPeriod and 2*minResyncPeriod.
	MinResyncPeriod metav1.Duration
}

MySQLAgentOpts holds the configuration options required to run the backup controller.

func NewMySQLAgentOpts

func NewMySQLAgentOpts() *MySQLAgentOpts

NewMySQLAgentOpts instantiates a new default MySQLAgentOpts getting values from the env where possible.

func (*MySQLAgentOpts) AddFlags

func (s *MySQLAgentOpts) AddFlags(fs *pflag.FlagSet) *pflag.FlagSet

AddFlags adds the mysql-agent flags to a given FlagSet.

func (*MySQLAgentOpts) Validate

func (s *MySQLAgentOpts) Validate() error

Validate checks that the required config options have been set.

Jump to

Keyboard shortcuts

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