(customConfig *controller.OperatorConfiguration)
| 89 | } |
| 90 | |
| 91 | func GetConfigForTesting(customConfig *controller.OperatorConfiguration) *controller.OperatorConfiguration { |
| 92 | configMutex.Lock() |
| 93 | defer configMutex.Unlock() |
| 94 | testConfig := defaultConfig.DeepCopy() |
| 95 | mergeConfig(customConfig, testConfig) |
| 96 | return testConfig |
| 97 | } |
| 98 | |
| 99 | func SetGlobalConfigForTesting(testConfig *controller.OperatorConfiguration) { |
| 100 | configMutex.Lock() |