helmvm

package
v1.103.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteNode

func DeleteNode(ctx context.Context, client kubernetes.Interface, restconfig *rest.Config, node *corev1.Node) error

func DrainNode

func DrainNode(ctx context.Context, client kubernetes.Interface, node *corev1.Node) error

func GenerateAddNodeCommand

func GenerateAddNodeCommand(client kubernetes.Interface, primary bool) ([]string, *time.Time, error)

GenerateAddNodeCommand will generate the HelmVM node add command for a primary or secondary node

func GetNodes

func GetNodes(client kubernetes.Interface) (*types.HelmVMNodes, error)

GetNodes will get a list of nodes with stats

func IsHA

func IsHA(clientset kubernetes.Interface) (bool, error)

func IsHelmVM

func IsHelmVM(clientset kubernetes.Interface) (bool, error)

func SyncExec

func SyncExec(coreClient corev1client.CoreV1Interface, clientConfig *rest.Config, ns, pod, container string, command ...string) (int, string, string, error)

SyncExec returns exitcode, stdout, stderr. A non-zero exit code from the command is not considered an 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