677e7e837e
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 |
||
---|---|---|
.. | ||
ci | ||
concerns | ||
cycle_analytics | ||
hooks | ||
issue | ||
members | ||
merge_request | ||
network | ||
project_services | ||
protected_branch | ||
.gitkeep | ||
ability.rb | ||
abuse_report.rb | ||
appearance.rb | ||
application_setting.rb | ||
audit_event.rb | ||
award_emoji.rb | ||
blob.rb | ||
board.rb | ||
broadcast_message.rb | ||
chat_name.rb | ||
commit.rb | ||
commit_range.rb | ||
commit_status.rb | ||
compare.rb | ||
cycle_analytics.rb | ||
deploy_key.rb | ||
deploy_keys_project.rb | ||
deployment.rb | ||
diff_note.rb | ||
discussion.rb | ||
email.rb | ||
environment.rb | ||
event.rb | ||
external_issue.rb | ||
forked_project_link.rb | ||
generic_commit_status.rb | ||
global_label.rb | ||
global_milestone.rb | ||
group.rb | ||
group_label.rb | ||
guest.rb | ||
identity.rb | ||
issue.rb | ||
issue_collection.rb | ||
key.rb | ||
label.rb | ||
label_link.rb | ||
label_priority.rb | ||
legacy_diff_note.rb | ||
lfs_object.rb | ||
lfs_objects_project.rb | ||
list.rb | ||
member.rb | ||
merge_request.rb | ||
merge_request_diff.rb | ||
merge_requests_closing_issues.rb | ||
milestone.rb | ||
namespace.rb | ||
note.rb | ||
notification_setting.rb | ||
oauth_access_token.rb | ||
personal_access_token.rb | ||
personal_snippet.rb | ||
project.rb | ||
project_authorization.rb | ||
project_feature.rb | ||
project_group_link.rb | ||
project_import_data.rb | ||
project_label.rb | ||
project_snippet.rb | ||
project_team.rb | ||
project_wiki.rb | ||
protected_branch.rb | ||
release.rb | ||
repository.rb | ||
route.rb | ||
security_event.rb | ||
sent_notification.rb | ||
service.rb | ||
snippet.rb | ||
spam_log.rb | ||
subscription.rb | ||
todo.rb | ||
tree.rb | ||
trending_project.rb | ||
u2f_registration.rb | ||
user.rb | ||
user_agent_detail.rb | ||
users_star_project.rb | ||
wiki_page.rb |