Drop the configure init container from Gitaly and Praefect

What does this MR do?

Step 4 of the plan in #6745: remove the configure init container from the Gitaly and Praefect StatefulSets, as !5560 (merged), !5562 (merged), and !5563 (merged) did for the other charts. The main containers mount the projected Secret volumes directly, under the former emptyDir names, so they read the same files at /etc/gitlab-secrets.

Changes

  • Gitaly and Praefect: the projected item paths include the subdirectory the script copied into, for example gitaly/gitaly_token and praefect/db_password. The unused init.image values and doc rows are removed.

  • Gitaly cgroups: init-cgroups wrote the Pod cgroup path file into the gitaly-secrets emptyDir, which is now read-only. It writes the file into its own memory emptyDir instead:

    Before After
    Path file /etc/gitlab-secrets/gitaly-pod-cgroup /etc/gitaly-cgroup/gitaly-pod-cgroup
    Volume gitaly-secrets gitaly-cgroup-path, only with cgroups.enabled

    The default cgroups.mountpoint reads the new path. A user-set mountpoint that reads the old path is rewritten to the new one.

  • Upgrade notes: Gitaly and Praefect are added to the 10.6.0 notes, with the mountpoint change.

Only undocumented customizations break: another container that reads /etc/gitlab-secrets/gitaly-pod-cgroup, or an OUTPUT_PATH override through extraEnv (Helm 3 only).

Verification

  • Render comparison: master's rendered scripts, replayed against the source volumes, stage the same files at the same paths as this branch's projected volumes. The value sets covered defaults, Praefect with TLS and GPG signing, and Praefect with cgroups. The files are now root:<fsGroup> instead of git:git. The mode stays 0440.
  • Specs: every /etc/gitlab-secrets/... path in the Gitaly and Praefect config.toml is projected into the mounted volume, the cgroup path file reaches Gitaly, and a legacy mountpoint is rewritten.
  • kind upgrade from master (Praefect with two Gitaly replicas): Gitaly and Praefect roll without configure, praefect sql-ping and dial-nodes pass, the existing repository reads back, and a new one is created. With cgroups, Gitaly resolves mountpoint from the new path. kind on Podman can't move git into the repository cgroups, on master as well as on this branch.

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?
  • 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

🤖 Generated with Claude Code

Edited by Clemens Beck

Merge request reports

Loading
Loading