Wrong agent_url value in the generated managed resource annotation
Summary
Every GitLab-managed resource has an annotation agent.gitlab.com/env-<kubernetes namespace> with a JSON value. This JSON included an agent_url key. This URL might be wrong when using shared agents
Reproduction steps
- Create a project
projectA - Create an agent registration project, register the agent, and share it in CI with
projectA - Enable
managed_resources - Run a job in
projectAthat uses managed resources - Check out the annotations used, and open the link in
agent_url
Actual behavior
404
Expected behavior
200 - pointing to the agent management page under the agent registration project
Example project
na
Edited by Viktor Nagy (GitLab)