code: func FormatRole(role string) (api.NodeRole, error) {
  	switch strings.ToLower(role) {
  	case strings.ToLower(ManagerRole):
  		return api.NodeRoleManager, nil
  	case strings.ToLower(WorkerRole):
  		return api.NodeRoleWorker, nil
  	default:
  		return 0, errors.Errorf("failed to parse role: %s", role)
  	}
  }
docs: // FormatRole parses an internal role string into an apiRole