code: func getPageSizeMountOptionFromPod(pod *v1.Pod) (string, error) {
  	pageSizeFound := false
  	pageSize := resource.Quantity{}
  	// In some rare cases init containers can also consume Huge pages.
  	containers := append(pod.Spec.Containers, pod.Spec.InitContainers...)
  	for _, container := range containers {
  		// We can take request because limit and requests must match.
  		for requestName := range container.Resources.Requests {
  			if v1helper.IsHugePageResourceName(requestName) {
  				currentPageSize, err := v1helper.HugePageSizeFromResourceName(requestName)
  				if err != nil {
  					return "", err
  				}
  				// PageSize for all volumes in a POD are equal, except for the first one discovered.
  				if pageSizeFound && pageSize.Cmp(currentPageSize) != 0 {
  					return "", fmt.Errorf("multiple pageSizes for huge pages in a single PodSpec")
  				}
  				pageSize = currentPageSize
  				pageSizeFound = true
  			}
  		}
  	}
  
  	if !pageSizeFound {
  		return "", fmt.Errorf("hugePages storage requested, but there is no resource request for huge pages")
  	}
  
  	return fmt.Sprintf("%s=%s", hugePagesPageSizeMountOption, pageSize.String()), nil
  
  }
docs: // getPageSizeMountOptionFromPod retrieves pageSize mount option from Pod's resources
  // and validates pageSize options in all containers of given Pod.