Skip to content

runtimes: add restricted PSS security contexts#3702

Draft
danish9039 wants to merge 1 commit into
kubeflow:masterfrom
danish9039:pr3487/trainer-restricted-pss
Draft

runtimes: add restricted PSS security contexts#3702
danish9039 wants to merge 1 commit into
kubeflow:masterfrom
danish9039:pr3487/trainer-restricted-pss

Conversation

@danish9039

Copy link
Copy Markdown
Member

What this PR does / why we need it:

This PR makes the Torch distributed Trainer runtime manifests and matching Helm templates restricted-PSS compatible.

It adds pod and container security contexts for the Torch distributed runtime and the data-cache variant, and updates Helm unit tests to cover those fields.

The data-cache dataset-initializer keeps the image default working directory because the image entrypoint runs python -m pkg.initializers.dataset from its /app module root. The training node containers keep workingDir: /tmp for non-root runtime compatibility.

Validation:

  • make helm-unittest passed: 18 suites / 109 tests
  • kustomize build manifests/base/runtimes
  • kustomize build manifests/base/runtimes/data-cache
  • helm template from a temporary chart copy after dependency build
  • git diff --check

Which issue(s) this PR fixes (optional, in Fixes #<issue number>, #<issue number>, ... format, will close the issue(s) when PR gets merged):
Related to kubeflow/community-distribution#3487

Checklist:

  • Docs included if any changes are user facing

Signed-off-by: danish9039 <danishsiddiqui040@gmail.com>
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🎉 Welcome to the Kubeflow Trainer! 🎉

Thanks for opening your first PR! We're happy to have you as part of our community 🚀

Here's what happens next:

  • If you haven't already, please check out our Contributing Guide for repo-specific guidelines and the Kubeflow Contributor Guide for general community standards.
  • Our team will review your PR soon! cc @kubeflow/kubeflow-trainer-team

Join the community:

Feel free to ask questions in the comments if you need any help or clarification!
Thanks again for contributing to Kubeflow! 🙏

@google-oss-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jeffwan for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant