feat(chart): add seLinuxChangePolicy support to podSecurityContext

What does this MR do?

Adds support for the Kubernetes 1.32+ seLinuxChangePolicy field in the shared gitlab.podSecurityContext helper template. This allows administrators to set seLinuxChangePolicy: MountOption to use mount options for SELinux labeling instead of recursive relabeling.

Author checklist

  • 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?
    • Tested on an OpenShift cluster running GitLab 19.3.3 with Gitaly backed by a large PVC (~millions of git objects). Without seLinuxChangePolicy: MountOption, the Gitaly pod fails with context deadline exceeded due to recursive SELinux relabeling. The chart currently does not render seLinuxChangePolicy even when set in values, which this MR fixes.
  • Equivalent MR/issue for omnibus-gitlab opened.
    • N/A — seLinuxChangePolicy is a Kubernetes pod security context field. omnibus-gitlab does not run in Kubernetes pods.
  • When ready for review, MR is marked as ready (not a draft) and assigned to a reviewer.

Reviewers checklist

Edited by Andrea Veri

Merge request reports

Loading
Loading