MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / NewConfiguration

Function NewConfiguration

internal/configuration/configuration.go:220–224  ·  view source on GitHub ↗

NewConfiguration create a new CNPG configuration by reading the environment variables

()

Source from the content-addressed store, hash-verified

218// NewConfiguration create a new CNPG configuration by reading
219// the environment variables
220func NewConfiguration() *Data {
221 configuration := newDefaultConfig()
222 configuration.ReadConfigMap(nil)
223 return configuration
224}
225
226// ReadConfigMap reads the configuration from the environment and the passed in data map
227func (config *Data) ReadConfigMap(data map[string]string) {

Callers 6

certs_test.goFile · 0.92
configuration.goFile · 0.85

Calls 2

newDefaultConfigFunction · 0.85
ReadConfigMapMethod · 0.80

Tested by

no test coverage detected