Loading
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 withcontext deadline exceededdue to recursive SELinux relabeling. The chart currently does not renderseLinuxChangePolicyeven when set in values, which this MR fixes.
- Tested on an OpenShift cluster running GitLab 19.3.3 with Gitaly
backed by a large PVC (~millions of git objects). Without
- Equivalent MR/issue for omnibus-gitlab opened.
- N/A —
seLinuxChangePolicyis a Kubernetes pod security context field. omnibus-gitlab does not run in Kubernetes pods.
- N/A —
- 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 Andrea Veri