code: func getPersistentVolumeClaims(set *apps.StatefulSet, pod *v1.Pod) map[string]v1.PersistentVolumeClaim {
  	ordinal := getOrdinal(pod)
  	templates := set.Spec.VolumeClaimTemplates
  	claims := make(map[string]v1.PersistentVolumeClaim, len(templates))
  	for i := range templates {
  		claim := templates[i]
  		claim.Name = getPersistentVolumeClaimName(set, &claim, ordinal)
  		claim.Namespace = set.Namespace
  		if claim.Labels != nil {
  			for key, value := range set.Spec.Selector.MatchLabels {
  				claim.Labels[key] = value
  			}
  		} else {
  			claim.Labels = set.Spec.Selector.MatchLabels
  		}
  		claims[templates[i].Name] = claim
  	}
  	return claims
  }
docs: // getPersistentVolumeClaims gets a map of PersistentVolumeClaims to their template names, as defined in set. The
  // returned PersistentVolumeClaims are each constructed with a the name specific to the Pod. This name is determined
  // by getPersistentVolumeClaimName.