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

Function SetGlobalConfigForTesting

pkg/config/sync.go:99–107  ·  view source on GitHub ↗
(testConfig *controller.OperatorConfiguration)

Source from the content-addressed store, hash-verified

97}
98
99func 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
109func SetupControllerConfig(client crclient.Client) error {
110 if internalConfig != nil {

Calls 5

setDefaultOverrideConfigFunction · 0.85
mergeConfigFunction · 0.85
DeepCopyMethod · 0.45

Tested by

no test coverage detected