code: func GetPersistentVolumeClaimVolumeMode(claim *v1.PersistentVolumeClaim) (v1.PersistentVolumeMode, error) {
  	if claim.Spec.VolumeMode != nil {
  		return *claim.Spec.VolumeMode, nil
  	}
  	return "", fmt.Errorf("cannot get volumeMode from pvc: %v", claim.Name)
  }
docs: // GetPersistentVolumeClaimVolumeMode retrieves VolumeMode from pvc.