Loading
Draft: Drop the configure init container from all charts but registry
What does this MR do?
Removes the configure init container from every chart except the registry. The containers now mount the projected Secret volumes directly, and each one reads the same files at the same paths as before. As a result, these Pods no longer need a shell or the gitlab-base image.
Notable changes:
- Toolbox: the
registry-db/andopenbao-db/credentials and the s3.s3cfgare now part oftoolbox-secrets. - Gitaly cgroups: the pod cgroup path file moved to
/etc/gitaly-cgroup. The oldmountpointpath is rewritten. - GitLab Shell:
- The host keys are mounted from their Secret at
/etc/gitlab-ssh-host-keys. - OpenSSH loads them through explicit
HostKeylines.
- The host keys are mounted from their Secret at
The upgrade notes for 10.6.0 are in doc/releases/10_0.md. The registry keeps its configure container for now.
Verification:
- The full
spec/configurationsuite passes. - A render comparison checks that every new volume provides the files the old scripts staged.
- In kind, I tested:
- Postgres client-certificate auth;
- OpenSSH and gitlab-sshd;
- Gitaly and Praefect;
- a toolbox backup;
- Gitaly cgroups setup.
Related issues
Related to #6745
Author checklist
For general guidance, please follow our Contributing guide.
Required
For anything in this list which will not be completed, please provide a reason in the MR discussion.
- Merge Request Title and Description are up to date, accurate, and descriptive.
- MR targeting the appropriate branch.
- MR has a green pipeline.
- Documentation created/updated.
- Tests added/updated.
- Have you validated that your change works end-to-end on a real cluster deployment?
- Verified in kind, see above.
- Equivalent MR/issue for omnibus-gitlab opened. Not applicable.
- When ready for review, MR is marked as ready (not a draft) and assigned to a reviewer.
Reviewers checklist
- As soon as you begin reviewing, select Start a review on your first comment so the MR shows Reviewer started review.
- MR has a green pipeline on https://gitlab.com/gitlab-org/charts/gitlab.
- Consider downstream impact to the Operator, as per evaluating impact from changes to GitLab chart.
Edited by Clemens Beck