(newConfig *controller.DevWorkspaceOperatorConfig)
| 188 | } |
| 189 | |
| 190 | func syncConfigFrom(newConfig *controller.DevWorkspaceOperatorConfig) { |
| 191 | if newConfig == nil || newConfig.Name != OperatorConfigName || newConfig.Namespace != configNamespace { |
| 192 | return |
| 193 | } |
| 194 | configMutex.Lock() |
| 195 | defer configMutex.Unlock() |
| 196 | internalConfig = defaultConfig.DeepCopy() |
| 197 | mergeConfig(newConfig.Config, internalConfig) |
| 198 | logCurrentConfig() |
| 199 | } |
| 200 | |
| 201 | func restoreDefaultConfig() { |
| 202 | configMutex.Lock() |