code: func (b BaseDeploymentGenerator) validate() error {
  	if len(b.Name) == 0 {
  		return fmt.Errorf("name must be specified")
  	}
  	if len(b.Images) == 0 {
  		return fmt.Errorf("at least one image must be specified")
  	}
  	return nil
  }
docs: // validate: check if the caller has forgotten to set one of our fields.