func CreateFioPodDef(podName string, volName string) *corev1.Pod {
	podDef := corev1.Pod{
		ObjectMeta: metav1.ObjectMeta{
			Name:      podName,
			Namespace: "default",
		},
		Spec: corev1.PodSpec{
			Containers: []corev1.Container{
				{
					Name:  podName,
					Image: "dmonakhov/alpine-fio",
					Args:  []string{"sleep", "1000000"},
					VolumeMounts: []corev1.VolumeMount{
						{
							Name:      "ms-volume",
							MountPath: "/volume",
						},
					},
				},
			},
			Volumes: []corev1.Volume{
				{
					Name: "ms-volume",
					VolumeSource: corev1.VolumeSource{
						PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
							ClaimName: volName,
						},
					},
				},
			},
		},
	}
	return &podDef
}
/// Create a test fio pod in default namespace, no options and no context
/// mayastor volume is mounted on /volume
Create a test fio pod in default namespace, no options and no context
mayastor volume is mounted on /volume
/// Create a test fio pod in default namespace no options and no context /// mayastor volume is mounted on / volume
func CreateFioPodDef(podName string, volName string) *corev1.Pod {
	podDef := corev1.Pod{
		ObjectMeta: metav1.ObjectMeta{
			Name:      podName,
			Namespace: "default",
		},
		Spec: corev1.PodSpec{
			Containers: []corev1.Container{
				{
					Name:  podName,
					Image: "dmonakhov/alpine-fio",
					Args:  []string{"sleep", "1000000"},
					VolumeMounts: []corev1.VolumeMount{
						{
							Name:      "ms-volume",
							MountPath: "/volume",
						},
					},
				},
			},
			Volumes: []corev1.Volume{
				{
					Name: "ms-volume",
					VolumeSource: corev1.VolumeSource{
						PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
							ClaimName: volName,
						},
					},
				},
			},
		},
	}
	return &podDef
}
func CreateFioPodDef ( podName string , volName string ) * corev1 . Pod { podDef := corev1 . Pod { ObjectMeta : metav1 . ObjectMeta { Name : podName , Namespace : " " , } , Spec : corev1 . PodSpec { Containers : [ ] corev1 . Container { { Name : podName , Image : " " , Args : [ ] string { " " , " " } , VolumeMounts : [ ] corev1 . VolumeMount { { Name : " " , MountPath : " " , } , } , } , } , Volumes : [ ] corev1 . Volume { { Name : " " , VolumeSource : corev1 . VolumeSource { PersistentVolumeClaim : & corev1 . PersistentVolumeClaimVolumeSource { ClaimName : volName , } , } , } , } , } , } return & podDef }
Create a test fio pod in default namespace, no options and no context
mayastor volume is mounted on /volume
Create a test fio pod in default namespace no options and no context mayastor volume is mounted on / volume