# Functions
Supported platform: OpenShift
cfg : OpenShift platform config, use runtime config if nil is passed in.
No description provided by the author
GetPlatformInfo examines the Kubernetes-based environment and determines the running platform, version, & OS.
GetPlatformName is a helper method to return the platform name from GetPlatformInfo results
Accepts <nil> or instantiated 'cfg' rest config parameter.
IsOpenShift is a helper method to simplify boolean OCP checks against GetPlatformInfo results
Accepts <nil> or instantiated 'cfg' rest config parameter.
LookupOpenShiftVersion fetches OpenShift version info from API endpoints
*** NOTE: OCP 4.1+ requires elevated user permissions, see PlatformVersioner for details
Accepts <nil> or instantiated 'cfg' rest config parameter.
MapKnownVersion maps from K8S version of PlatformInfo to equivalent OpenShift version
Result: OpenShiftVersion{ Version: 4.1.2 }
*/.