Introduce Gitlab-Agent-Version header in k8s proxy
- Introduce Gitlab-Agent-Version header in k8s proxy
This change set introduces a new Gitlab-Agent-Version
header that the
agent sets in the headers of each Kubernetes API proxy response.
This will allow us to easily forward warnings to the user when the agent
is outdated or otherwise not compatible with the server.
Without this, we'd either have to parse the version from the Via
header or look it up from the information we have in Redis. Even if we
have those cached it's a performance hit.
We'll be able to easily add the API warnings in the Kubernetes API proxy when we merge the headers.
It makes sense to already introduce this header now even without a "user" for it on the server side so that we can treat agents without this header in approx. 3 milestones time as outdated.
Changelog: added