Skip to content

[CronJob] Add RayCronJob related YAML#4577

Merged
rueian merged 4 commits into
ray-project:masterfrom
machichima:ray-cron-job-config-yaml
Mar 10, 2026
Merged

[CronJob] Add RayCronJob related YAML#4577
rueian merged 4 commits into
ray-project:masterfrom
machichima:ray-cron-job-config-yaml

Conversation

@machichima

@machichima machichima commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

Why are these changes needed?

Some of the YAML file/config fields are missing for RayCronJob. This PR adds them back.

  1. Add RayCronJob editor/viewer role under helm-chart/kuberay-operator/templates/
    • Those files will be applied when we do helm install
  2. Add RayCronJob editor/viewer role under ray-operator/config/rbac/
    • Those files will not be applied automatically. Follow how we did for RayJob and RayService, we do not include the role YAML file under kustomization.yaml resources, so user will need to apply them manually
  3. Add RayCronJob feature gate in helm-chart/kuberay-operator/values.yaml

Related issue number

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(
Signed-off-by: machichima <nary12321@gmail.com>
Signed-off-by: machichima <nary12321@gmail.com>
Signed-off-by: machichima <nary12321@gmail.com>
Signed-off-by: machichima <nary12321@gmail.com>
@Future-Outlier

Copy link
Copy Markdown
Member

cc @JiangJiaWei1103 @seanlaii @win5923 to help take a look, tks

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing RayCronJob-related RBAC manifests and configuration so RayCronJob can be enabled and managed consistently alongside existing RayJob/RayService support in both the Helm chart and the operator’s config bundle.

Changes:

  • Add RayCronJob editor/viewer ClusterRole manifests to the Helm chart templates and to ray-operator/config/rbac/.
  • Add a RayCronJob feature gate entry to the Helm chart values.yaml (and reflect it in the chart README).
  • Update the Helm render helper script to include the new RayCronJob RBAC templates.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/helm-render-yaml.sh Includes RayCronJob RBAC templates in scripted Helm rendering.
ray-operator/config/rbac/ray_raycronjob_viewer_role.yaml Adds end-user viewer ClusterRole for RayCronJob (manual apply).
ray-operator/config/rbac/ray_raycronjob_editor_role.yaml Adds end-user editor ClusterRole for RayCronJob (manual apply).
helm-chart/kuberay-operator/values.yaml Adds RayCronJob to Helm-managed feature gates.
helm-chart/kuberay-operator/templates/ray_raycronjob_viewer_role.yaml Adds Helm-templated viewer ClusterRole for RayCronJob.
helm-chart/kuberay-operator/templates/ray_raycronjob_editor_role.yaml Adds Helm-templated editor ClusterRole for RayCronJob.
helm-chart/kuberay-operator/README.md.gotmpl Updates CRD list to include RayCronJob.
helm-chart/kuberay-operator/README.md Regenerated/updated docs reflecting RayCronJob and the new feature gate entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rueian rueian merged commit b9a8dc0 into ray-project:master Mar 10, 2026
35 checks passed
hango880623 pushed a commit to hango880623/kuberay that referenced this pull request Mar 13, 2026
* feat: add raycronjob editor and viewer role

Signed-off-by: machichima <nary12321@gmail.com>

* feat: add feature gate to values.yaml

Signed-off-by: machichima <nary12321@gmail.com>

* feat: add raycronjob editor and viewer role to rbac

Signed-off-by: machichima <nary12321@gmail.com>

* feat: add raycronjob editor/viewer YAML in helm-render-yaml script

Signed-off-by: machichima <nary12321@gmail.com>

---------

Signed-off-by: machichima <nary12321@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants