Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
UnsupportedClusterError = errors.New("running on unsupported cluster")
)
Functions ¶
func Initialize ¶
func Initialize() error
Initialize attempts to determine the type of cluster its currently running on (OpenShift or Kubernetes). This function *must* be called before others; otherwise the call will panic.
func InitializeForTesting ¶
func InitializeForTesting(currentInfrastructure Type)
InitializeForTesting is used to mock running on a specific type of cluster (Kubernetes, OpenShift) in testing code.
func IsOpenShift ¶
func IsOpenShift() bool
IsOpenShift returns true if the current cluster is an OpenShift (v4.x) cluster.
Types ¶
Click to show internal directories.
Click to hide internal directories.