public static Set<String> getPodVolumes(V1Pod pod) {
		Set<String> podsVolumes = new HashSet<>();
		if (pod == null) {
			return Collections.emptySet();
		}
		V1PodSpec podSpec = pod.getSpec();
		if (podSpec == null) {
			return podsVolumes;
		}
		List<V1Volume> volumes = podSpec.getVolumes();
		if (volumes == null || volumes.isEmpty()) {
			return podsVolumes;
		}
		volumes.stream().forEach(volume -> {
			V1PersistentVolumeClaimVolumeSource podPVC = volume.getPersistentVolumeClaim();
			if (podPVC != null) {
				podsVolumes.add(podPVC.getClaimName());
			}
		});
		return podsVolumes;
	}
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