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

Method GetPrimaryUpdateStrategy

api/v1/cluster_funcs.go:805–812  ·  view source on GitHub ↗

GetPrimaryUpdateStrategy get the cluster primary update strategy, defaulting to unsupervised

()

Source from the content-addressed store, hash-verified

803// GetPrimaryUpdateStrategy get the cluster primary update strategy,
804// defaulting to unsupervised
805func (cluster *Cluster) GetPrimaryUpdateStrategy() PrimaryUpdateStrategy {
806 strategy := cluster.Spec.PrimaryUpdateStrategy
807 if strategy == "" {
808 return PrimaryUpdateStrategyUnsupervised
809 }
810
811 return strategy
812}
813
814// GetPrimaryUpdateMethod get the cluster primary update method,
815// defaulting to restart

Calls

no outgoing calls

Tested by

no test coverage detected