code: func updatePodContainers(params map[string]string, args []string, envs []v1.EnvVar, imagePullPolicy v1.PullPolicy, podSpec *v1.PodSpec) error {
  	if len(args) > 0 {
  		command, err := generate.GetBool(params, "command", false)
  		if err != nil {
  			return err
  		}
  		if command {
  			podSpec.Containers[0].Command = args
  		} else {
  			podSpec.Containers[0].Args = args
  		}
  	}
  
  	if len(envs) > 0 {
  		podSpec.Containers[0].Env = envs
  	}
  
  	if len(imagePullPolicy) > 0 {
  		// imagePullPolicy should be valid here since we have verified it before.
  		podSpec.Containers[0].ImagePullPolicy = imagePullPolicy
  	}
  	return nil
  }
docs: // updatePodContainers updates PodSpec.Containers with passed parameters.