Wrong agentk version recommendation on GitLab.com

The current Rails code is somewhat inaccurate in deducing the version for agentk and falls back to the GitLab version in case the version in the GITLAB_KAS_VERSION file is a SHA.

This works okay for GitLab self-managed but is a problem for GitLab.com where the GitLab version will almost always point to MAJOR.MINOR + 1.

image

I think we really do need Use ServerInfo gRPC endpoint to retrieve KAS ve... (#458891) asap (we decided not to do this, see proposal below)

For GitLab.com we can simplify the fix and just NOT reference a version at all so that the latest is used. This is anyways the correct behavior for GitLab.com.

This bug only affects GitLab.com and not self-managed, because we have stable tags there.


Old implementation plan

Implementation Plan

  1. Start to version the GitLab Agent Helm Chart with the same version as GitLab and GitLab Agent. We anyways almost always release at the same time. We'll need this anyways with Extend gitlab-agent release process to GitLab A... (gitlab-com/gl-infra/delivery#20169).
  2. On GitLab self-managed: install the same version as GitLab (this will always work, since we have a GitLab Agent Helm Chart release for every GitLab release)
  3. On GitLab.com: don't specify the version at all - we always want the latest.
Edited by Timo Furrer