code: func (s *Stack) createFileBasedConfigMaps(configMaps corev1.ConfigMapInterface) ([]childResource, error) {
  	var resources []childResource
  	for name, config := range s.Spec.Configs {
  		if config.File == "" {
  			continue
  		}
  
  		fileName := filepath.Base(config.File)
  		content, err := ioutil.ReadFile(config.File)
  		if err != nil {
  			return resources, err
  		}
  
  		configMap, err := configMaps.Create(toConfigMap(s.Name, name, fileName, content))
  		if err != nil {
  			return resources, err
  		}
  		resources = append(resources, &configMapChildResource{client: configMaps, configMap: configMap})
  	}
  	return resources, nil
  }
docs: // createFileBasedConfigMaps creates a Kubernetes ConfigMap for each Compose global file-based config.