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

Method IsReusePVCEnabled

api/v1/cluster_funcs.go:850–856  ·  view source on GitHub ↗

IsReusePVCEnabled check if in a maintenance window we should reuse PVCs

()

Source from the content-addressed store, hash-verified

848
849// IsReusePVCEnabled check if in a maintenance window we should reuse PVCs
850func (cluster *Cluster) IsReusePVCEnabled() bool {
851 reusePVC := true
852 if cluster.Spec.NodeMaintenanceWindow != nil && cluster.Spec.NodeMaintenanceWindow.ReusePVC != nil {
853 reusePVC = *cluster.Spec.NodeMaintenanceWindow.ReusePVC
854 }
855 return reusePVC
856}
857
858// IsInstanceFenced check if in a given instance should be fenced
859func (cluster *Cluster) IsInstanceFenced(instance string) bool {

Callers 5

reconcilePodsMethod · 0.80
MaintenanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected