MCPcopy Create free account
hub / github.com/devfile/devworkspace-operator / syncConfigFrom

Function syncConfigFrom

pkg/config/sync.go:190–199  ·  view source on GitHub ↗
(newConfig *controller.DevWorkspaceOperatorConfig)

Source from the content-addressed store, hash-verified

188}
189
190func 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
201func restoreDefaultConfig() {
202 configMutex.Lock()

Calls 3

mergeConfigFunction · 0.85
logCurrentConfigFunction · 0.85
DeepCopyMethod · 0.45