utils

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 4

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