Skip to content

Make launch mole bridge pod job avoid launching pods if owner is a user

Marcos Huck requested to merge hotfix/mole_bridge_pod into feature/billing

Context

There's a bug in the LaunchMoleBridgePod job, when you request a simulation as a user not being part of an org, the owner field is set to the username, and therefore this block fails:

 owner := subtSim.GetOwner()
 if owner != nil {
  org, em := s.Services().Users().GetOrganization(*owner)
  if em != nil {
   return nil, em.BaseError
  }
  teamID = int(org.ID)
 }

Change

This MR makes the avoid launching the mole bridge pod if the owner is not an org.

Merge request reports