code: func (s ConfigMapGeneratorV1) StructuredGenerate() (runtime.Object, error) {
  	if err := s.validate(); err != nil {
  		return nil, err
  	}
  	configMap := &api.ConfigMap{}
  	configMap.Name = s.Name
  	configMap.Data = map[string]string{}
  	if len(s.FileSources) > 0 {
  		if err := handleConfigMapFromFileSources(configMap, s.FileSources); err != nil {
  			return nil, err
  		}
  	}
  	if len(s.LiteralSources) > 0 {
  		if err := handleConfigMapFromLiteralSources(configMap, s.LiteralSources); err != nil {
  			return nil, err
  		}
  	}
  	return configMap, nil
  }
docs: // StructuredGenerate outputs a configMap object using the configured fields.