Skip to content

feat: Add available_versions method to return list of all versions

Sean Arnold requested to merge add-known-versions into main

What

Adds a available_versions method to return a sorted list of the available versions, from current_list.

Why?

In Switchboard we want to give GitLab operators the ability to set the GitLab version during a Tenant's maintenance. Returning a list helps us verify that the versions exist.

Note This list will be further filtered on the Switchboard side by:

  • Slicing out versions older than the current Tenant's versions
  • Slicing out versions higher than our max supported version (Currently n-1)

I thought about adding a between method here instead, but I don't want to have to call this API for each tenant.

Edited by Sean Arnold

Merge request reports