Include version suffix in agent install command
What does this MR do and why?
Includes the agent version suffix (eg. -rc1
) in the install command shown when registering an agent. Without the suffix, the frontend can show a non-existent image version and the install command will fail.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Create an empty agent config file at
.gitlab/agents/my-agent/config.yaml
. - Go to Infrastructure -> Kubernetes clusters -> Connect a cluster, and select
my-agent
. - The install command should show
image.tag=15.6.0-rc1
, not15.6.0
.
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 Tiger Watson