code: func storageMatches(set *apps.StatefulSet, pod *v1.Pod) bool {
  	ordinal := getOrdinal(pod)
  	if ordinal < 0 {
  		return false
  	}
  	volumes := make(map[string]v1.Volume, len(pod.Spec.Volumes))
  	for _, volume := range pod.Spec.Volumes {
  		volumes[volume.Name] = volume
  	}
  	for _, claim := range set.Spec.VolumeClaimTemplates {
  		volume, found := volumes[claim.Name]
  		if !found ||
  			volume.VolumeSource.PersistentVolumeClaim == nil ||
  			volume.VolumeSource.PersistentVolumeClaim.ClaimName !=
  				getPersistentVolumeClaimName(set, &claim, ordinal) {
  			return false
  		}
  	}
  	return true
  }
docs: // storageMatches returns true if pod's Volumes cover the set of PersistentVolumeClaims