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

Method GetMaxStartDelay

api/v1/cluster_funcs.go:732–737  ·  view source on GitHub ↗

GetMaxStartDelay get the amount of time of startDelay config option

()

Source from the content-addressed store, hash-verified

730
731// GetMaxStartDelay get the amount of time of startDelay config option
732func (cluster *Cluster) GetMaxStartDelay() int32 {
733 if cluster.Spec.MaxStartDelay > 0 {
734 return cluster.Spec.MaxStartDelay
735 }
736 return DefaultStartupDelay
737}
738
739// GetMaxStopDelay get the amount of time PostgreSQL has to stop
740func (cluster *Cluster) GetMaxStopDelay() int32 {

Callers 3

GetRestartTimeoutMethod · 0.95
createPostgresContainersFunction · 0.80
reconcileFencingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected