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