Skip to content

Support gitlab-shell feature flags through gitlab.rb

Patrick Bajao requested to merge 4207-gitlab-shell-migrated-features into master

What does this MR do?

Modify the gitlab-shell recipe to support feature flags through gitlab.rb. The node['gitlab']['gitlab-shell']['migration'] will be used to set the config file options.

It accepts a hash that has 2 keys: enabled and features. Example:

gitlab_shell['migration'] = { enabled: true, features: ['discover', '2fa_recovery_codes'] }

Closes #4207 (closed)

Checklist

See Definition of done.

  • Changelog entry created. Not applicable for Documentation changes and minor changes.
  • [-] Documentation created/updated
  • Tests added
  • [-] Integration tests added to GitLab QA, if applicable
  • MR targeting master branch
  • MR has a green pipeline on GitLab.com
  • [-] Equivalent MR/issue for CNG opened if applicable

Reviewer Checklist

In addition to above, reviewer must:

  • Pipeline is green on dev.gitlab.org if the change is not touching documentation or internal cookbooks

References

Edited by GitLab Release Tools Bot

Merge request reports