gitlab-org--gitlab-foss/app
Kamil Trzciński 677e7e837e Merge branch 'seed-runner-token' into 'master'
Allow users to seed the initial runner registration token using an environment variable

## 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?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !6642
2016-12-15 11:12:29 +00:00
..
assets Remove pages/snippets css 2016-12-14 20:02:10 -05:00
controllers Introduce deployment services, starting with a KubernetesService 2016-12-14 21:06:26 +00:00
finders Merge branch '19990-update-snippets-page-design' into 'master' 2016-12-12 18:06:20 +00:00
helpers Merge branch 'build-statuses' into 'master' 2016-12-14 12:34:22 +00:00
mailers
models Merge branch 'seed-runner-token' into 'master' 2016-12-15 11:12:29 +00:00
policies Backport hooks on group policies for the EE-specific implementation 2016-12-13 11:51:09 -02:00
serializers
services fix awkward verb conjugation in cherry-pick and revert errors 2016-12-10 00:56:52 -06:00
uploaders Render SVG as images in notes 2016-12-08 00:29:43 -02:00
validators
views Remove pages/snippets css 2016-12-14 20:02:10 -05:00
workers Merge branch 'fix/rename-mwbs-to-merge-when-pipeline-succeeds' into 'master' 2016-12-05 11:07:57 +00:00