[Helm][Feat] Expose enableIngress and ingressOptions in the RayCluster chart #5195
All Vouch review confidence checks passed
Residual risk 0.31 = Change Risk (0.71) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.71 · 529 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.375
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.071
Real PR Conversation Timeline
1 comments
"Review active on #5195"
general
weight: 0.35
machichima
Why are these changes needed?
KubeRay 1.7 added
headGroupSpec.ingressOptionsto the RayCluster CRD in #4901, which lets users customize the Ingress the operator generates for the head dashboard (host,path,pathType,tls). Theray-clusterHelm chart does not expose it, so Helm users cannot enable or configure the generated Ingress.This PR exposes those settings in the chart:
head.ingressOptionsis passed through tospec.headGroupSpec.ingressOptionswithtoYaml, so any field the CRD supports now or later works without further chart changes. This matches howhead.headServiceandhead.autoscalerOptionsare already handled.head.enableIngressis exposed as well. The operator only builds an Ingress whenheadGroupSpec.enableIngressis true, and the chart never exposed that flag either, soingressOptionson its own would have no effect. Both fields are needed for the chart to produce a working Ingress end to end.Both values are commented out in
values.yamland rendered with{{- with }}, so they are omitted from the RayCluster spec unless the user sets them. The default rendering is byte for byte identical to before this change, and the operator and CRD defaults still apply when the fields are unset.Example usage:
Related issue number
Closes #5189
Labels
<!-- Please add the appropriate labels to this PR. -->
doc-updates-requiredlabel.breaking-changelabel.Checks
- [x] Unit tests
- [x] Manual tests
Helm unit tests added in
helm-chart/ray-cluster/tests/raycluster_test.yaml:neither field appears in the rendered spec by default
head.enableIngress: truerendersenableIngress: truehead.enableIngress: falserenders nothing, leaving the CRD default in placehead.ingressOptionswithhost,path,pathTypeandtlsis passed through unchangedhelm unittest helm-chart/ray-cluster --file "tests/*/_test.yaml" --strictpasses, 108 tests.helm lintpasses.make -C helm-chart helm-docsproduces no diff, since helm-docs does not document commented out keys.Manual test instructions
Verified end to end on a KinD cluster with the operator installed from this repo (
quay.io/kuberay/operator:nightly).The Ingress created by the operator carries every configured field:
Additional checks on the same cluster:
kubectl apply --dry-run=serveron the rendered chart is accepted by the API server, confirming the field paths match the CRD schema.A deliberately invalid value is rejected by CRD validation rather than silently ignored:
spec.headGroupSpec.ingressOptions.pathType: Unsupported value: "Bogus": supported values: "Exact", "Prefix", "ImplementationSpecific"