code: func parseEnvs(envArray []string) ([]v1.EnvVar, error) {
  	envs := make([]v1.EnvVar, 0, len(envArray))
  	for _, env := range envArray {
  		pos := strings.Index(env, "=")
  		if pos == -1 {
  			return nil, fmt.Errorf("invalid env: %v", env)
  		}
  		name := env[:pos]
  		value := env[pos+1:]
  		if len(name) == 0 {
  			return nil, fmt.Errorf("invalid env: %v", env)
  		}
  		if len(validation.IsEnvVarName(name)) != 0 {
  			return nil, fmt.Errorf("invalid env: %v", env)
  		}
  		envVar := v1.EnvVar{Name: name, Value: value}
  		envs = append(envs, envVar)
  	}
  	return envs, nil
  }
docs: // parseEnvs converts string into EnvVar objects.