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

Function getMergedConfig

pkg/config/sync.go:183–188  ·  view source on GitHub ↗
(from, to *controller.OperatorConfiguration)

Source from the content-addressed store, hash-verified

181}
182
183func getMergedConfig(from, to *controller.OperatorConfiguration) *controller.OperatorConfiguration {
184 mergedConfig := to.DeepCopy()
185 fromCopy := from.DeepCopy()
186 mergeConfig(fromCopy, mergedConfig)
187 return mergedConfig
188}
189
190func syncConfigFrom(newConfig *controller.DevWorkspaceOperatorConfig) {
191 if newConfig == nil || newConfig.Name != OperatorConfigName || newConfig.Namespace != configNamespace {

Callers 1

Calls 2

mergeConfigFunction · 0.85
DeepCopyMethod · 0.45

Tested by

no test coverage detected