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

Method ShouldCreateWalArchiveVolume

api/v1/cluster_funcs.go:1026–1028  ·  view source on GitHub ↗

ShouldCreateWalArchiveVolume returns whether we should create the wal archive volume

()

Source from the content-addressed store, hash-verified

1024
1025// ShouldCreateWalArchiveVolume returns whether we should create the wal archive volume
1026func (cluster *Cluster) ShouldCreateWalArchiveVolume() bool {
1027 return cluster.Spec.WalStorage != nil
1028}
1029
1030// ShouldPromoteFromReplicaCluster returns true if the cluster should promote
1031func (cluster *Cluster) ShouldPromoteFromReplicaCluster() bool {

Callers 9

upgradeSubCommandMethod · 0.95
buildCommonInitJobFlagsFunction · 0.80
createPostgresVolumesFunction · 0.80
getWalVolumeSizeFunction · 0.80
newFakePVCFunction · 0.80
PrintClusterResourcesFunction · 0.80

Calls

no outgoing calls

Tested by 1

newFakePVCFunction · 0.64