# Functions
No description provided by the author
No description provided by the author
DeleteCPMS will remove the CPMS of the cluster - in OSD this will trigger the CPMS to be recreated in an inactive state.
GetClusterBaseDomain returns the installed clsuter's base domain name.
GetClusterName returns the installed cluster's name (max 27 characters).
GetClusterVersionObject returns the canonical ClusterVersion object To check current version: `output.Status.History[0].Version`
`history contains a list of the most recent versions applied to the cluster.
GetControlPlaneMachineSet returns an OSD cluster's CPMS.
GetInfrastructureObject returns the canonical Infrastructure object.
GetMasterMachines returns a MachineList object whose .Items can be iterated over to perform actions on/with information from each master machine object.
GetPlatformType returns the cloud platform type for the cluster.
IsVersionHigherThan checks whether the given version is higher than the cluster version input is required to be a version such as: 4.10 or 4.10.1 Returns false(no action) if there's an exception.
SAhealthcheck will perform a basic call to make sure ingresscontrollers is reachable covers: https://github.com/openshift/cloud-ingress-operator/blob/32e50ef2aa8571f9bb60aaf53ed9d1262cc2c083/deploy/20_cloud-ingress-operator_openshift-ingress-operator.Role.yaml#L39-L50.
SetClusterVersion sets the cluster version globally(to ENV as CLUSTER_VERSION).
SetCPMSActive will set a CPMS back to active.