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

Method SetDefaults

api/v1/cluster_defaults.go:57–59  ·  view source on GitHub ↗

SetDefaults apply the defaults to undefined values in a Cluster

()

Source from the content-addressed store, hash-verified

55
56// SetDefaults apply the defaults to undefined values in a Cluster
57func (r *Cluster) SetDefaults() {
58 r.setDefaults(false)
59}
60
61func (r *Cluster) setDefaults(preserveUserSettings bool) {
62 // Defaulting the image name if not specified

Callers 7

newFakeCNPGClusterFunction · 0.95
podmonitor_test.goFile · 0.80
setDefaultsMethod · 0.80
ValidateUpdateMethod · 0.80

Calls 1

setDefaultsMethod · 0.95

Tested by 2

newFakeCNPGClusterFunction · 0.76