func (b *Builder) WithPersistentVolumeSource(source *corev1.PersistentVolumeSource) *Builder {
	if source == nil {
		b.errs = append(b.errs, errors.New("failed to build PV object: missing PV source"))
		return b
	}
	b.pv.object.Spec.PersistentVolumeSource = *source
	return b
}
// WithPersistentVolumeSource sets the volume source field of PV with provided source
WithPersistentVolumeSource sets the volume source field of PV with provided source
// WithPersistentVolumeSource sets the volume source field of PV with provided source
func (b *Builder) WithPersistentVolumeSource(source *corev1.PersistentVolumeSource) *Builder {
	if source == nil {
		b.errs = append(b.errs, errors.New("failed to build PV object: missing PV source"))
		return b
	}
	b.pv.object.Spec.PersistentVolumeSource = *source
	return b
}
func ( b * Builder ) WithPersistentVolumeSource ( source * corev1 . PersistentVolumeSource ) * Builder { if source == nil { b . errs = append ( b . errs , errors . New ( " " ) ) return b } b . pv . object . Spec . PersistentVolumeSource = * source return b }
WithPersistentVolumeSource sets the volume source field of PV with provided source
WithPersistentVolumeSource sets the volume source field of PV with provided source