Add version compatibility check for runner registration workfow
Problem
There is no API check available to determine if the new runner registration workflow is available within a specific instance of GitLab. Depending on the version, it could be a combination of the version, app settings, and/or feature flags. We need to determine if there's both a simple and reliable way to check.
Proposed Solution
-
Investigate most straightforward paths for checking -
version -
modified app settings -
feature flags (this is mostly done)
-
-
Add version + feature flag as well as version + app settings combination checkIf one check returns true, bypass the other
-
Create boolean method for invalid POST
to runner auth endpoint based on which error code is returned- This is definitely a workaround. Ideal solution would be to add an API endpoint that returns the standard OpenAPI map of endpoints that we can iterate through. This could then be reused elsewhere within the framework.
Edited by Zeff Morgan