Add GitLab agent image tag to install command
What does this MR do and why?
Currently, the commands used to install the GitLab agent (agentk) will always install the latest chart version, which, by default, uses the latest released agent. This could cause problems on older versions of GitLab, as we only guarantee N-1 version compatibility (new agents will not always work with <= N-2 GitLab versions). This makes it so that the version we install is the same as the KAS version (for every KAS version, there is a corresponding agentk version).
Screenshots or screen recordings
master | this branch |
---|---|
![]() |
![]() |
How to set up and validate locally
- Check out this branch
- Visit any project
- Navigate
Infrastructure > Kubernetes clusters > Connect a cluster
- Type an arbitrary name
- Select
Create agent: ${name}
- Press
Register
- Observe that the command includes
--set image.tag=v15.0.0
or whatever is in yourGITLAB_KAS_VERSION
file at the GitLab root.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Hordur Freyr Yngvason