commands

package
v0.0.0-...-3430a5a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSecretMountPath = "/account/password" // #nosec G101
	InjectedPasswordPath   = "/tmp/newpass"      // #nosec G101
)

Variables

This section is empty.

Functions

func GetPod

func GetPod(ctx context.Context, client *kubernetes.Clientset, namespace, name string, logger logr.Logger) (*corev1.Pod, error)

func LoadAuthInfo

func LoadAuthInfo(c *cli.Context, ctx context.Context) (*redis.AuthInfo, error)

func LoadMonitorAuthInfo

func LoadMonitorAuthInfo(c *cli.Context, ctx context.Context, client *kubernetes.Clientset) (*redis.AuthInfo, error)

func LoadTLSCofig

func LoadTLSCofig(tlsKeyFile, tlsCertFile string) (*tls.Config, error)

func NewOwnerReference

func NewOwnerReference(ctx context.Context, client *kubernetes.Clientset, namespace, podName string) ([]metav1.OwnerReference, error)

NewOwnerReference

func RetryGet

func RetryGet(f func() error, steps ...int) error

func RetryGetService

func RetryGetService(ctx context.Context, clientset *kubernetes.Clientset, svcNamespace, svcName string, typ corev1.ServiceType,
	count int, logger logr.Logger) (*corev1.Service, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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