Documentation ¶
Index ¶
- func ClusterProviderFromSpec(providerSpec clusterv1.ProviderSpec) (*talosv1.TalosClusterProviderSpec, error)
- func CreateK8sClientSet() (*kubernetes.Clientset, error)
- func FetchConfigMap(cluster *clusterv1.Cluster, machine *clusterv1.Machine, ...) (*v1.ConfigMap, error)
- func MachineProviderFromSpec(providerSpec clusterv1.ProviderSpec) (*talosv1.TalosMachineProviderSpec, error)
- func RandomString(n int) string
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 ¶
RandomString simply returns a string of length n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.