code: func VolumeConfigToConfigMapData(config *ProvisionerConfiguration) (map[string]string, error) {
  	configMapData := make(map[string]string)
  	val, err := yaml.Marshal(config.StorageClassConfig)
  	if err != nil {
  		return nil, fmt.Errorf("unable to Marshal volume config: %v", err)
  	}
  	configMapData[ProvisonerStorageClassConfig] = string(val)
  	if len(config.NodeLabelsForPV) > 0 {
  		nodeLabels, nlErr := yaml.Marshal(config.NodeLabelsForPV)
  		if nlErr != nil {
  			return nil, fmt.Errorf("unable to Marshal node label: %v", nlErr)
  		}
  		configMapData[ProvisionerNodeLabelsForPV] = string(nodeLabels)
  	}
  	ver, err := yaml.Marshal(config.UseAlphaAPI)
  	if err != nil {
  		return nil, fmt.Errorf("unable to Marshal API version config: %v", err)
  	}
  	configMapData[ProvisionerUseAlphaAPI] = string(ver)
  
  	return configMapData, nil
  }
docs: // VolumeConfigToConfigMapData converts volume config to configmap data.