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