Skip to content

Allow users to seed the initial runner registration token using an environment variable

DJ Mountney requested to merge seed-runner-token into master

What does this MR do?

Allow users to seed the initial runner registration token using an environment variable

Are there points in the code the reviewer needs to double check?

  • Naming, do we want to make sure we are clear it's the 'registration' token. Like GITLAB_RUNNER_REGISTRATION_TOKEN vs what I have now, GITLAB_RUNNER_TOKEN
  • Not sure we've tested a seed fixture before, I just made up a directory structure for the test

Why was this MR needed?

At the moment I want to use this in our idea to production demo: https://gitlab.com/gitlab-org/gitlab-ce/issues/22190

This is useful for when runner is bundled with gitlab, like in a kubernetes stack, and we want the runner to be able to register with gitlab as soon as they both come up.

Does this MR meet the acceptance criteria?

Merge request reports