runner

package
v0.0.0-...-0227cab Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlaveWaitInterval  = time.Second * 60
	MasterWaitInterval = time.Second * 2

	DefaultRedisServerPort = "6379"
)

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(ctx context.Context) *cli.Command

func RebalanceSlots

func RebalanceSlots(ctx context.Context, authInfo redis.AuthInfo, address string, logger logr.Logger) error

RebalanceSlots

func RetrySetSlotStatus

func RetrySetSlotStatus(ctx context.Context, client redis.Client, slotId int, nodeId string, retryCount int) (err error)

func SyncFromLocalToConfigMap

func SyncFromLocalToConfigMap(c *cli.Context, ctx context.Context, logger logr.Logger) error

func WatchAndSync

func WatchAndSync(ctx context.Context, client *kubernetes.Clientset, namespace, name, workspace, target string,
	syncInterval int64, ownerRefs []v1.OwnerReference, logger logr.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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