(testConfig *controller.OperatorConfiguration)
| 97 | } |
| 98 | |
| 99 | func SetGlobalConfigForTesting(testConfig *controller.OperatorConfiguration) { |
| 100 | configMutex.Lock() |
| 101 | defer configMutex.Unlock() |
| 102 | setDefaultPodSecurityContext() |
| 103 | setDefaultContainerSecurityContext() |
| 104 | setDefaultOverrideConfig() |
| 105 | internalConfig = defaultConfig.DeepCopy() |
| 106 | mergeConfig(testConfig, internalConfig) |
| 107 | } |
| 108 | |
| 109 | func SetupControllerConfig(client crclient.Client) error { |
| 110 | if internalConfig != nil { |
no test coverage detected