gitlab-org--gitlab-foss/app/models
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
..
ci Merge branch '22849-ci-build-ref-slug' into 'master' 2016-12-15 11:08:27 +00:00
concerns Merge branch 'seed-runner-token' into 'master' 2016-12-15 11:12:29 +00:00
cycle_analytics Merge branch 'jej-fix-missing-access-check-on-issues' into 'security' 2016-11-28 21:25:46 -03:00
hooks
issue
members
merge_request
network
project_services Merge branch 'fix-slack-pipeline-message-by-api' into 'master' 2016-12-15 11:08:45 +00:00
protected_branch CE-specific changes gitlab-org/gitlab-ee#1137 2016-11-29 17:38:45 +05:30
.gitkeep
ability.rb Extract abilities checking module from ability model 2016-12-13 14:44:43 +01:00
abuse_report.rb
appearance.rb
application_setting.rb
audit_event.rb
award_emoji.rb
blob.rb
board.rb
broadcast_message.rb
chat_name.rb Create relation between chat user and GitLab user and allow to authorize them [ci skip] 2016-11-17 21:34:23 +01:00
commit.rb Merge branch 'jej-23867-use-mr-finder-instead-of-access-check' into 'security' 2016-12-08 21:42:07 -03:00
commit_range.rb Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
commit_status.rb Improve readability in methods for detailed status 2016-12-13 13:24:25 +01:00
compare.rb
cycle_analytics.rb Merge branch 'jej-fix-missing-access-check-on-issues' into 'security' 2016-11-28 21:25:46 -03:00
deploy_key.rb
deploy_keys_project.rb
deployment.rb
diff_note.rb
discussion.rb Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
email.rb
environment.rb Use :maximum instead of :within for length validators with a 0..N range 2016-12-06 10:23:17 +01:00
event.rb Removed data-user-is view code 2016-11-25 13:45:34 +01:00
external_issue.rb
forked_project_link.rb
generic_commit_status.rb Move has_trace? to CommitStatus than GenericCommitStatus 2016-11-22 13:36:19 +08:00
global_label.rb
global_milestone.rb Add a starting date to milestones 2016-11-23 13:41:04 +02:00
group.rb Update user's authorized projects if project is allowed to share with group 2016-11-23 12:59:07 +02:00
group_label.rb
guest.rb
identity.rb
issue.rb Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
issue_collection.rb
key.rb Use :maximum instead of :within for length validators with a 0..N range 2016-12-06 10:23:17 +01:00
label.rb Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
label_link.rb
label_priority.rb
legacy_diff_note.rb
lfs_object.rb
lfs_objects_project.rb
list.rb
member.rb Authorize users into imported GitLab project 2016-12-05 22:34:37 +02:00
merge_request.rb Do not reload diff for merge request made from fork when target branch in fork is updated 2016-12-09 12:10:26 +01:00
merge_request_diff.rb Replace references to MergeRequestDiff#commits with st_commits 2016-12-01 12:17:30 +01:00
merge_requests_closing_issues.rb
milestone.rb Add shorthand support to gitlab markdown references 2016-12-02 19:18:17 -02:00
namespace.rb Modify namespace name and path validation 2016-12-12 14:21:02 +02:00
note.rb Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
notification_setting.rb
oauth_access_token.rb
personal_access_token.rb
personal_snippet.rb
project.rb Introduce deployment services, starting with a KubernetesService 2016-12-14 21:06:26 +00:00
project_authorization.rb Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
project_feature.rb issue and mergerequest slash command for mattermost 2016-11-17 21:34:23 +01:00
project_group_link.rb Precalculate user's authorized projects in database 2016-11-18 20:25:45 +02:00
project_import_data.rb
project_label.rb
project_snippet.rb
project_team.rb Update ProjectTeam#fetch_members to use project authorizations 2016-11-23 12:59:13 +02:00
project_wiki.rb
protected_branch.rb
release.rb
repository.rb Merge branch 'jej-23867-use-mr-finder-instead-of-access-check' into 'security' 2016-12-08 21:42:07 -03:00
route.rb Add nested groups support on data level 2016-12-08 11:47:16 +02:00
security_event.rb
sent_notification.rb
service.rb Introduce deployment services, starting with a KubernetesService 2016-12-14 21:06:26 +00:00
snippet.rb Merge branch '25209-improve-length-validators' into 'master' 2016-12-07 10:31:21 +00:00
spam_log.rb
subscription.rb Allow subscriptions to be created without a project 2016-11-17 15:10:13 -02:00
todo.rb
tree.rb Unify detecting of special repository files 2016-11-21 12:51:40 +01:00
trending_project.rb
u2f_registration.rb
user.rb Be smarter when finding a sudoed user in API::Helpers 2016-12-13 15:53:00 +01:00
user_agent_detail.rb
users_star_project.rb
wiki_page.rb