func GetMariadbBkpVolumeClaimName(bkp *v1alpha1.Backup) string {
	return bkp.Name + "-pv-claim"
}
GetMariadbBkpVolumeClaimName - return name of PVC used in DB Backup
package resource
import (
	"github.com/persistentsys/mariadb-operator/pkg/apis/mariadb/v1alpha1"
	"github.com/persistentsys/mariadb-operator/pkg/utils"
	corev1 "k8s.io/api/core/v1"
	v1 "k8s.io/api/core/v1"
	"k8s.io/apimachinery/pkg/api/resource"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"k8s.io/apimachinery/pkg/runtime"
	"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
	logf "sigs.k8s.io/controller-runtime/pkg/log"
)
var volLog = logf.Log.WithName("resource_volumes")
func GetMariadbVolumeName(v *v1alpha1.MariaDB) string {
	return v.Name + "-" + v.Namespace + "-pv"
}
func GetMariadbVolumeClaimName(v *v1alpha1.MariaDB) string {
	return v.Name + "-pv-claim"
}
func GetMariadbBkpVolumeName(bkp *v1alpha1.Backup) string {
	return bkp.Name + "-" + bkp.Namespace + "-pv"
}