Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKubernetesClients ¶
func CreateKubernetesClients(flags *CMDFlags) (kubernetes.Interface, redisfailoverclientset.Interface, apiextensionsclientset.Interface, error)
CreateKubernetesClients create the clients to connect to kubernetes
Types ¶
type CMDFlags ¶
type CMDFlags struct {
KubeConfig string
SupportedNamespacesRegex string
Development bool
ListenAddr string
MetricsPath string
K8sQueriesPerSecond int
K8sQueriesBurstable int
Concurrency int
LogLevel string
}
CMDFlags are the flags used by the cmd TODO: improve flags.
func (*CMDFlags) ToRedisOperatorConfig ¶
func (c *CMDFlags) ToRedisOperatorConfig() redisfailover.Config
ToRedisOperatorConfig convert the flags to redisfailover config
Click to show internal directories.
Click to hide internal directories.