Skip to content

Commit

Permalink
Adjust tunnelID so we start at 1
Browse files Browse the repository at this point in the history
Signed-off-by: Toby Cabot <toby@acnodal.io>
  • Loading branch information
caboteria committed Nov 24, 2023
1 parent ca93e91 commit 31df88a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/v1/epic_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func AllocateTunnelID(ctx context.Context, l logr.Logger, cl client.Client) (tun
return err
}

if epic.Status.CurrentTunnelID == 0 {
l.Info("adjusting tunnelID")
epic.Status.CurrentTunnelID = 1
}

tunnelID = epic.Status.CurrentTunnelID
epic.Status.CurrentTunnelID++

Expand Down

0 comments on commit 31df88a

Please sign in to comment.