cluster

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposeNodePort

func ExposeNodePort(ctx context.Context, client *kubernetes.Clientset, namespace, podName, ipfamily string, serviceType corev1.ServiceType, logger logr.Logger) error

ExposeNodePort

func Heal

func Heal(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, logger logr.Logger) error

Heal

func NewCommand

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

func Ping

func Ping(ctx context.Context, addr string, authInfo valkey.AuthInfo) error

Ping

func Readiness

func Readiness(ctx context.Context, addr string, authInfo valkey.AuthInfo) error

func Shutdown

func Shutdown(ctx context.Context, c *cli.Context, client *kubernetes.Clientset, logger logr.Logger) error

Shutdown shutdown the node and do failover before complete shutdown.

func TcpSocket

func TcpSocket(ctx context.Context, addr string, t time.Duration) error

TcpSocket

Types

type FailoverAction

type FailoverAction string
const (
	NoFailoverAction    FailoverAction = ""
	ForceFailoverAction FailoverAction = "FORCE"
)

type HealOptions

type HealOptions struct {
	Namespace  string
	PodName    string
	Workspace  string
	TargetName string
	Prefix     string
	ShardID    string
	NodeFile   string
}

Jump to

Keyboard shortcuts

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