# Functions

AppendIfNotPresent appends a string to a slice only if the value does not already exist.
AtLeastv125 returns true if the RKE2 version is at least v1.25.0.
CompareVersions compares two string version supposing those would begin with 'v' or not.
GetClusterByName finds and return a Cluster object using the specified params.
GetControlPlaneByName finds and return a ControlPlane object using the specified params.
GetMapKeysAsString returns a comma separated string of keys from a map.
GetOwnerControlPlane returns the RKE2ControlPlane object that owns the object passed as parameter.
IsRKE2Version checks if a string is an RKE2 version.
ProfileCompliant returns true if the CIS profile is compliant.
Random generates a random string with length size.
Rke2ToKubeVersion converts an RKE2 version to a Kubernetes version.
TokenName returns a token name from the cluster name.

# Constants

RKE2_CIS_VERSION_CHANGE is the version where the CIS benchmark changed in RKE2 (because of PSPs).

# Variables

ErrControlPlaneNotFound is returned when a control plane is not found.