Skip to content

REST: Deprecate runner details API fields

What does this MR do and why?

Description

Deprecate runner API fields

These no longer make sense since they can differ per runner manager (child entity).

See more in:

We're currently leaving these fields returning the same values (although from a different source). They will start returning null in %18.0.

Changelog: deprecated

Closes #457128

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

After the change:

image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Create a runner

  2. Register it

  3. Run the runner with gitlab-runner run so that we have a runner manager in the system

  4. Find the ID of the runner and assign it to the RUNNER_ID environment var.

  5. Run the following command against your GDK (you need to first create a personal token and assign it to GITLAB_GDK_TOKEN):

    curl --url "http://gdk.test:3000/api/v4/runners/$RUNNER_ID" --header "Authorization: Bearer $GITLAB_GDK_TOKEN" | jq
Edited by Pedro Pombeiro

Merge request reports