code: func (s SecretGeneratorV1) StructuredGenerate() (runtime.Object, error) {
  	if err := s.validate(); err != nil {
  		return nil, err
  	}
  	secret := &api.Secret{}
  	secret.Name = s.Name
  	secret.Data = map[string][]byte{}
  	if len(s.Type) > 0 {
  		secret.Type = api.SecretType(s.Type)
  	}
  	if len(s.FileSources) > 0 {
  		if err := handleFromFileSources(secret, s.FileSources); err != nil {
  			return nil, err
  		}
  	}
  	if len(s.LiteralSources) > 0 {
  		if err := handleFromLiteralSources(secret, s.LiteralSources); err != nil {
  			return nil, err
  		}
  	}
  	return secret, nil
  }
docs: // StructuredGenerate outputs a secret object using the configured fields