Documentation
¶
Index ¶
- func AddToExistingSans(existing []string, new []string) []string
- func AnnotationsForK0smotronCluster(kmc *km.Cluster) map[string]string
- func DefaultK0smotronClusterLabels(kmc *km.Cluster) map[string]string
- func DownloadCommands(preInstalledK0s bool, url string, version string) []string
- func EnsureFinalizer(ctx context.Context, c client.Client, o client.Object, finalizer string) (finalizerAdded bool, err error)
- func FindNodeAddress(nodes *v1.NodeList) string
- func FindStatefulSetPod(ctx context.Context, clientSet *kubernetes.Clientset, statefulSet string, ...) (*v1.Pod, error)
- func GetKubeClient(ctx context.Context, client client.Client, cluster *clusterv1.Cluster) (*kubernetes.Clientset, error)
- func LabelsForEtcdK0smotronCluster(kmc *km.Cluster) map[string]string
- func LabelsForK0smotronCluster(kmc *km.Cluster) map[string]string
- func LabelsForK0smotronControlPlane(kmc *km.Cluster) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToExistingSans ¶ added in v1.5.4
AddToExistingSans merges original sans list with a new sans slice avoiding duplicated values.
func AnnotationsForK0smotronCluster ¶ added in v1.4.0
func DefaultK0smotronClusterLabels ¶ added in v1.4.0
func DownloadCommands ¶ added in v1.5.4
DownloadCommands constructs the download commands for a given URL and version.
func EnsureFinalizer ¶ added in v1.5.4
func EnsureFinalizer(ctx context.Context, c client.Client, o client.Object, finalizer string) (finalizerAdded bool, err error)
EnsureFinalizer adds a finalizer if the object doesn't have a deletionTimestamp set and if the finalizer is not already set. This util is usually used in reconcilers directly after the reconciled object was retrieved and before pause is handled or "defer patch" with the patch helper.
TODO: This function is copied from https://github.com/kubernetes-sigs/cluster-api/blob/v1.9.0/util/finalizers/finalizers.go. Use it once the CAPI dependency is bumped to >=v1.9.0.
func FindNodeAddress ¶ added in v0.7.0
FindNodeAddress returns a random node address preferring external address if one is found
func FindStatefulSetPod ¶
func FindStatefulSetPod(ctx context.Context, clientSet *kubernetes.Clientset, statefulSet string, namespace string) (*v1.Pod, error)
FindStatefulSetPod returns a first running pod from a StatefulSet
func GetKubeClient ¶ added in v1.0.2
func LabelsForEtcdK0smotronCluster ¶ added in v1.4.0
func LabelsForK0smotronCluster ¶ added in v1.4.0
Types ¶
This section is empty.