code: func IsGlobalService(service *api.Service) bool {
  	if service == nil {
  		return false
  	}
  	_, ok := service.Spec.GetMode().(*api.ServiceSpec_Global)
  	return ok
  }
docs: // IsGlobalService checks if the service is a global service.