code: func makePodSpec(params map[string]string, name string) (*v1.PodSpec, error) {
  	stdin, err := generate.GetBool(params, "stdin", false)
  	if err != nil {
  		return nil, err
  	}
  
  	tty, err := generate.GetBool(params, "tty", false)
  	if err != nil {
  		return nil, err
  	}
  
  	resourceRequirements, err := HandleResourceRequirementsV1(params)
  	if err != nil {
  		return nil, err
  	}
  
  	spec := v1.PodSpec{
  		ServiceAccountName: params["serviceaccount"],
  		Containers: []v1.Container{
  			{
  				Name:      name,
  				Image:     params["image"],
  				Stdin:     stdin,
  				TTY:       tty,
  				Resources: resourceRequirements,
  			},
  		},
  	}
  	return &spec, nil
  }
docs: // makePodSpec returns PodSpec filled with passed parameters.