IsReusePVCEnabled check if in a maintenance window we should reuse PVCs
()
| 848 | |
| 849 | // IsReusePVCEnabled check if in a maintenance window we should reuse PVCs |
| 850 | func (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 |
| 859 | func (cluster *Cluster) IsInstanceFenced(instance string) bool { |
no outgoing calls
no test coverage detected