utho

package
v0.0.0-...-1b1f4ba Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PENDING  = "pending"
	ACTIVE   = "active"
	RESIZING = "resizing"
)
View Source
const (
	// ProviderName defines the cloud provider
	ProviderName = "utho"
)

Variables

View Source
var Options struct {
	KubeconfigFlag *pflag.Flag
}

Options currently stores the Kubeconfig that was passed in. We can use this to extend any other flags that may have been passed in that we require

Functions

func GenerateRandomString

func GenerateRandomString(length int) string

func GetDcslug

func GetDcslug(client utho.Client, clusterId string) (string, error)

func GetK8sInstance

func GetK8sInstance(client utho.Client, clusterId, instanceId string) (*utho.WorkerNode, error)

func GetKubeClient

func GetKubeClient() (*kubernetes.Clientset, error)

func GetLabelValue

func GetLabelValue(labelKey string, clientset kubernetes.Interface) (string, error)

GetLabelValue retrieves the value of a specified label from the first node in the cluster

func GetNodePoolsID

func GetNodePoolsID() ([]string, error)

GetNodePoolsID retrieves all unique node pool IDs from the nodes in the cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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