utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MPL-2.0 Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterProviderFromSpec

func ClusterProviderFromSpec(providerSpec clusterv1.ProviderSpec) (*talosv1.TalosClusterProviderSpec, error)

ClusterProviderFromSpec parses out and returns provider specific cluster spec

func CreateK8sClientSet

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

CreateK8sClientSet returns a kube client to use for calls to the api server

func FetchConfigMap

func FetchConfigMap(cluster *clusterv1.Cluster, machine *clusterv1.Machine, clientset *kubernetes.Clientset) (*v1.ConfigMap, error)

FetchConfigMap grabs the proper cm from kubernetes depending on whether we're worried about our masters or workers

func MachineProviderFromSpec

func MachineProviderFromSpec(providerSpec clusterv1.ProviderSpec) (*talosv1.TalosMachineProviderSpec, error)

MachineProviderFromSpec parses out and returns provider specific machine spec

func RandomString

func RandomString(n int) string

RandomString simply returns a string of length n

Types

This section is empty.

Jump to

Keyboard shortcuts

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