func (b *Builder) WithLocalHostPathFormat(path, fstype string) *Builder {
	if len(path) == 0 {
		b.errs = append(b.errs, errors.New("failed to build PV object: missing PV path"))
		return b
	}
	volumeSource := corev1.PersistentVolumeSource{
		Local: &corev1.LocalVolumeSource{
			Path:   path,
			FSType: &fstype,
		},
	}

	b.pv.object.Spec.PersistentVolumeSource = volumeSource
	return b
}
// WithLocalHostPathFormat sets the LocalVolumeSource field of PV with provided hostpath
// and request to format it with fstype - if not already formatted. A "" value for fstype
// indicates that the Local PV can determine the type of FS.
WithLocalHostPathFormat sets the LocalVolumeSource field of PV with provided hostpath
and request to format it with fstype - if not already formatted. A "" value for fstype
indicates that the Local PV can determine the type of FS.
// WithLocalHostPathFormat sets the LocalVolumeSource field of PV with provided hostpath // and request to format it with fstype - if not already formatted . A " " value for fstype // indicates that the Local PV can determine the type of FS .
func (b *Builder) WithLocalHostPathFormat(path, fstype string) *Builder {
	if len(path) == 0 {
		b.errs = append(b.errs, errors.New("failed to build PV object: missing PV path"))
		return b
	}
	volumeSource := corev1.PersistentVolumeSource{
		Local: &corev1.LocalVolumeSource{
			Path:   path,
			FSType: &fstype,
		},
	}
	b.pv.object.Spec.PersistentVolumeSource = volumeSource
	return b
}
func ( b * Builder ) WithLocalHostPathFormat ( path , fstype string ) * Builder { if len ( path ) == 0 { b . errs = append ( b . errs , errors . New ( " " ) ) return b } volumeSource := corev1 . PersistentVolumeSource { Local : & corev1 . LocalVolumeSource { Path : path , FSType : & fstype , } , } b . pv . object . Spec . PersistentVolumeSource = volumeSource return b }
WithLocalHostPathFormat sets the LocalVolumeSource field of PV with provided hostpath
and request to format it with fstype - if not already formatted.
WithLocalHostPathFormat sets the LocalVolumeSource field of PV with provided hostpath and request to format it with fstype - if not already formatted .