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

Function restoreDefaultConfig

pkg/config/sync.go:201–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199}
200
201func restoreDefaultConfig() {
202 configMutex.Lock()
203 defer configMutex.Unlock()
204 internalConfig = defaultConfig.DeepCopy()
205 logCurrentConfig()
206}
207
208// discoverRouteSuffix attempts to determine a clusterHostSuffix that is compatible with the current cluster.
209// On OpenShift, this is done by creating a temporary route and reading the auto-filled .spec.host. On Kubernetes,

Callers 1

PredicatesFunction · 0.85

Calls 2

logCurrentConfigFunction · 0.85
DeepCopyMethod · 0.45

Tested by

no test coverage detected