utils

package
v1.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKubernetesClients

CreateKubernetesClients create the clients to connect to kubernetes

func LoadKubernetesConfig

func LoadKubernetesConfig(flags *CMDFlags) (*rest.Config, error)

LoadKubernetesConfig loads kubernetes configuration based on flags.

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) Init

func (c *CMDFlags) Init()

Init initializes and parse the flags

func (*CMDFlags) ToRedisOperatorConfig

func (c *CMDFlags) ToRedisOperatorConfig() redisfailover.Config

ToRedisOperatorConfig convert the flags to redisfailover config

Jump to

Keyboard shortcuts

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