Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateRandomString(length int) string
- func GetDcslug(client utho.Client, clusterId string) (string, error)
- func GetK8sInstance(client utho.Client, clusterId, instanceId string) (*utho.WorkerNode, error)
- func GetKubeClient() (*kubernetes.Clientset, error)
- func GetLabelValue(labelKey string, clientset kubernetes.Interface) (string, error)
- func GetNodePoolsID() ([]string, error)
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 GetK8sInstance ¶
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 ¶
GetNodePoolsID retrieves all unique node pool IDs from the nodes in the cluster
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.