Skip to content

fix(ray): inherit head security context for sidecars - #8429

Open
xjerod wants to merge 1 commit into
mainfrom
jerod/eng26-1565-ray-security-context
Open

xjerod wants to merge 1 commit into
mainfrom
jerod/eng26-1565-ray-security-context

Conversation

@xjerod

@xjerod xjerod commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Overview

Copy the final head primary container’s securityContext into KubeRay autoscaler options when autoscaling is enabled. Configured logs sidecars inherit that context only when their context is unset.

Preserve explicit logs contexts, head-template overrides, and existing behavior when autoscaling is disabled.

Customer-Facing Change Log

Ray autoscaler and logs sidecars inherit the head container’s security settings.

Test Plan (required)

Added regression coverage for inheritance, overrides, nil and empty contexts, disabled autoscaling, primary selection, and deep-copy isolation.

Passed: go test -mod=readonly -race -p 2 ./flyteplugins/...

CI pending PR creation. Combined E2E validation follows the remaining Apple fixes.

Rollout Plan (required)

Consume this change together with ENG26-1566 in one Cloud flyte2 pin update after both upstream fixes merge. Run E2E after ENG26-1564/1565/1566 merge.

Rollback Plan (required)

Revert the inheritance change upstream and consume the revert through a Cloud pin update.

Issue

Ref https://linear.app/unionai/issue/ENG26-1565

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant