utils

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 10 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
	Development bool
	Debug       bool
	ListenAddr  string
	MetricsPath 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