InitializeForTesting is used to mock running on a specific type of cluster (Kubernetes, OpenShift) in testing code.
(currentInfrastructure Type)
| 56 | |
| 57 | // InitializeForTesting is used to mock running on a specific type of cluster (Kubernetes, OpenShift) in testing code. |
| 58 | func InitializeForTesting(currentInfrastructure Type) { |
| 59 | current = currentInfrastructure |
| 60 | initialized = true |
| 61 | } |
| 62 | |
| 63 | func IsInitialized() bool { |
| 64 | return initialized |
no outgoing calls