Enhance documentation to migrate from omnibus-gitlab based installation to a Helm chart based installation
Context: https://gitlab.com/charts/gitlab/issues/646
In cloud native helm charts based installations, we are using object storage as default for storing uploads, artifacts etc. We need to provide a way for users currently using omnibus-gitlab package WITHOUT object storage to easily migrate to helm charts based installation with minimal intervention. Our proposed way is using backup restore rake tasks for this migration.
AFAIU, Our current gitlab:uploads:migrate
rake task does the following:
- Iterate through each upload corresponding to the uploader/model class
- Get the file from its current path (path is read from db entry)
- Push it to object storage, generating a new value for path.
- Update the db entry with new path
However, during our restore process in charts, we are extracting the contents of the tarball to a specific location. So, the rake task can't work because the files will not be found in the location mentioned in DB.
So, in the step 2 of above list, we need the rake task to get the file from this specific location (maybe prefix this location with the path from db entry) and then push it to object storage, and then update the DB entry. Need to figure out how to proceed with this.
@marin @twk3 @Ahmadposten @WarheadsSE @smcgivern @DouweM @jprovaznik