Add KAS metadata to REST API (address and version)
We'd like to add KAS metadata to the REST API, but we need to define what's the best place to put it.
The following discussion from !83270 (merged) should be addressed:
-
@tuxtimo started a discussion: (+5 comments) @nagyv-gitlab @Alexand it wasn't in the API spec proposal, but I think it makes sense to provide the KAS address the agent can be connected to with every agent response.
What do you think? And would you know from where to get it from within the API code?
🏓
Release notes
Setting up an agent for Kubernetes connection in an automated way was one of the first requests we received after releasing the agent. In the past months, @tuxtimo implemented a REST API and extended the GitLab Terraform Provider to support managing agents in an automated way. The current release further improves agent and in general GitLab management by introducing a /metadata
REST endpoint that is the superset of the /version
endpoint.
The /metadata
endpoint contains information about the current GitLab version, whether KAS is enabled and where it can be accessed. Previously, the KAS address needed to be filled into automation scripts manually.