public static String getVolumeName(V1PersistentVolumeClaim pvc) {
		if (pvc == null) {
			return null;
		}
		String pvcName = pvc.getMetadata().getName();
		Map<String, String> labels = pvc.getMetadata().getLabels();
		String volName = ResourceLabelUtil.getVolumeName(labels);
		if (StringUtils.isNotBlank(volName)) {
		    return volName;
		}
		String appName = ResourceLabelUtil.getAppName(labels);
		String serviceName = ResourceLabelUtil.getServiceName(labels);

		if (StringUtils.isBlank(appName) || StringUtils.isBlank(serviceName)) {
			return pvcName;
		}

		int indexOfSuffix = pvcName.indexOf(serviceName);
		
		if (indexOfSuffix > 0) {
		    return pvcName.substring(0, indexOfSuffix - 1);
		}
		
		return pvcName;
	}
Get volume name from pvc
pvc name = volume_name-service_name-index
@param pvc
@return volumeName
deployer/deployer-services/src/main/java/io/hyscale/deployer/services/util/KubernetesVolumeUtil.java