Skip to content

Workaround helm hooks not streaming logs

Thong Kuah requested to merge 52197-show-db-hook-logs into master

What does this MR do?

We use Helm hooks to run DB migration and initialization but because there is no feature to stream hook logs, we use a function to show logs from the helm upgrade... command.

$CI_ENVIRONMENT_SLUG-db-initialize and $CI_ENVIRONMENT_SLUG-db-migrate pod selectors come from the auto-deploy-app chart.

What are the relevant issue numbers?

Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/52197

Testing

See log output from https://gitlab.com/DylanGriffith/rails-auto-devops-migration-test/-/jobs/104026162

Does this MR meet the acceptance criteria?

Closes #52197 (moved)

Edited by Thong Kuah

Merge request reports