Skip to content

[docs] Sync the vendored KubeRay CRD API reference - #65618

Merged
dstrodtman merged 1 commit into
masterfrom
kuberay-api-sync
Aug 20, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
kuberay-api-sync

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Refreshes the generated KubeRay CRD API reference at doc/source/cluster/kubernetes/references/api.md from
ray-project/kuberay release tag v1.7.0, pinned at commit 97509c3.

Opened automatically. The upstream file is a build artifact that
elastic/crd-ref-docs generates from the Go CRD types in
ray-operator/apis/ray/, and KubeRay's ray-operator-verify-api-docs CI job
fails on drift between the two, so the content is verified upstream before it
reaches here. That job covers release-* branches as well as master, so a
release tag's artifact carries the same guarantee.

This syncs from the latest KubeRay release, not from master. Master carries
CRD surface that no release ships, and documenting it here would advertise
fields a reader can't use.

The ray.io/v1alpha1 section is stripped on the way in. That API version is
deprecated and on a removal runway (kuberay-project/kuberay#5124), and its cross-links
collide with the v1 anchors (kuberay-project/kuberay#5091).

With one package left, the Packages index and the ray.io/v1 heading
restate the page's own subject, so both are dropped and the headings under them
move up to h2. Sphinx's right-hand page nav lists h2 only, so this is what puts
the CRD types in it. Heading text is untouched, so the anchors cross-links
resolve against don't move. A page intro replaces the generated package blurb
those headings carried, naming the resource types read off the page's own
index.

Prose that a Go doc comment indented with a tab becomes a list, and the
non-breaking hyphen those comments carry becomes an ASCII one. Tab indentation
is godoc's code-block convention, so crd-ref-docs passes it through and the
renderer turns the sentences into a preformatted block. Both belong upstream
(kuberay-project/kuberay#5146) and this step drops out once they're fixed there.

Checks

Content-only: the single changed file is documentation under doc/, so the
docs-go scope guard applies cleanly. The Read the Docs preview build on this
PR is the gate — a green build means the regenerated reference still renders
and all of its in-page anchors resolve.

Nothing else in this PR. If it contains any other change, something is wrong
with the sync job.

@dstrodtman
dstrodtman requested review from a team and andrewsykim as code owners August 20, 2026 16:11
@dstrodtman dstrodtman added docs An issue or change related to documentation docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. labels Aug 20, 2026

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the generated KubeRay API reference documentation from version 1.6.2 to 1.7.0, introducing new configuration options for autoscaler containers, GCS fault tolerance, network policies, TLS options, and worker group priorities. The review feedback points out grammatical errors, branding inconsistencies, and a version typo in the descriptions of the new fields, recommending that these issues be addressed upstream in the KubeRay repository.

Comment on lines +100 to +101
| `command` _string array_ | Optional list overwrite the default command of the autoscaler container. | | |
| `args` _string array_ | Optional to overwrite the default args of the autoscaler container. | | |

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.

medium

There are grammatical issues in the descriptions for command and args:

  • For command: "Optional list overwrite..." should be "Optional list to overwrite..." or "Optional list of commands to overwrite...".
  • For args: "Optional to overwrite..." should be "Optional arguments to overwrite..." or "Optional list of arguments to overwrite...".

Since this file is generated, please ensure these descriptions are updated upstream in the KubeRay repository.

Suggested change
| `command` _string array_ | Optional list overwrite the default command of the autoscaler container. | | |
| `args` _string array_ | Optional to overwrite the default args of the autoscaler container. | | |
| `command` _string array_ | Optional list to overwrite the default command of the autoscaler container. | | |
| `args` _string array_ | Optional arguments to overwrite the default args of the autoscaler container. | | |

| --- | --- | --- | --- |
| `jobTemplate` _[RayJobSpec](#rayjobspec)_ | JobTemplate defines the job spec that will be created by cron scheduling | | |
| `schedule` _string_ | Schedule is the cron schedule string | | |
| `timeZone` _string_ | TimeZone is the time zone name for the given schedule. If not specified, default to the local time zone of the<br />Kuberay Operator. Empty string is not allowed.<br />The bundled version of the time zone database is used. | | MinLength: 1 <br /> |

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.

medium

There are minor grammatical and branding issues in the timeZone description:

  • "default to the local time zone" should be "defaults to the local time zone".
  • "Kuberay Operator" should be "KubeRay Operator" to maintain consistent branding with the rest of the document.

Since this file is generated, please ensure this is updated upstream in the KubeRay repository.

Suggested change
| `timeZone` _string_ | TimeZone is the time zone name for the given schedule. If not specified, default to the local time zone of the<br />Kuberay Operator. Empty string is not allowed.<br />The bundled version of the time zone database is used. | | MinLength: 1 <br /> |
| `timeZone` _string_ | TimeZone is the time zone name for the given schedule. If not specified, defaults to the local time zone of the<br />KubeRay Operator. Empty string is not allowed.<br />The bundled version of the time zone database is used. | | MinLength: 1 <br /> |

| `minReplicas` _integer_ | MinReplicas denotes the minimum number of desired Pods for this worker group. | 0 | |
| `maxReplicas` _integer_ | MaxReplicas denotes the maximum number of desired Pods for this worker group, and the default value is maxInt32. | 2147483647 | |
| `idleTimeoutSeconds` _integer_ | IdleTimeoutSeconds denotes the number of seconds to wait before the v2 autoscaler terminates an idle worker pod of this type.<br />This value is only used with the Ray Autoscaler enabled and defaults to the value set by the AutoscalingConfig if not specified for this worker group. | | |
| `priority` _integer_ | Priority influences which worker group the autoscaler prefers when multiple<br />groups can satisfy the same resource demand. Higher priority groups are<br />preferred for scale-up. Only honored by Ray Autoscaler v2 (Ray >= 2.56). | 0 | |

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.

medium

The Ray version "2.56" in "(Ray >= 2.56)" appears to be a typo, likely meant to be "2.5.6" or "2.5.0". Ray has not reached version 2.56.

Since this file is generated, please ensure this is corrected upstream in the KubeRay repository.

Suggested change
| `priority` _integer_ | Priority influences which worker group the autoscaler prefers when multiple<br />groups can satisfy the same resource demand. Higher priority groups are<br />preferred for scale-up. Only honored by Ray Autoscaler v2 (Ray >= 2.56). | 0 | |
| `priority` _integer_ | Priority influences which worker group the autoscaler prefers when multiple<br />groups can satisfy the same resource demand. Higher priority groups are<br />preferred for scale-up. Only honored by Ray Autoscaler v2 (Ray >= 2.5.6). | 0 | |

@ronny-anyscale ronny-anyscale 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.

ping

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Aug 20, 2026
@dstrodtman
dstrodtman enabled auto-merge (squash) August 20, 2026 20:19
@dstrodtman
dstrodtman merged commit 624b0ee into master Aug 20, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the kuberay-api-sync branch August 20, 2026 20:24
dstrodtman added a commit that referenced this pull request Aug 29, 2026
…#65428, #65618) (#65735)

Cherry-picks the vendored KubeRay CRD API reference onto
`releases/2.58.0`.

2.58.0 pins KubeRay v1.7. On master, #65428 vendored the KubeRay CRD API
reference into the Ray docs (`cluster/kubernetes/references/api.md`) and
repointed the references page and two guides from the external
`ray-project.github.io/kuberay/reference/api/` link to an internal
`{ref}` cross-reference; #65618 then synced the vendored reference to
KubeRay v1.7. Both landed after the branch cut, so the versioned 2.58.0
docs still link out to the external "latest" reference instead of the
pinned v1.7 CRDs.

This PR brings the release branch in line with the KubeRay v1.7 feature
docs backport.

Cherry-picks of #65428 and #65618.

Note: #65428 changes one line in
`getting-started/rayjob-quick-start.md`, which the KubeRay v1.7
feature-docs backport (#65730) also modifies. Whichever merges second
may need a trivial rebase.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Why are these changes needed?

Refreshes the generated KubeRay CRD API reference at
`doc/source/cluster/kubernetes/references/api.md` from
`ray-project/kuberay` release tag v1.7.0, pinned at commit
[`97509c3`](https://github.com/ray-project/kuberay/blob/97509c3a7216cf3440af381646560a1885afb53b/docs/reference/api.md).

Opened automatically. The upstream file is a build artifact that
`elastic/crd-ref-docs` generates from the Go CRD types in
`ray-operator/apis/ray/`, and KubeRay's `ray-operator-verify-api-docs`
CI job
fails on drift between the two, so the content is verified upstream
before it
reaches here. That job covers `release-*` branches as well as `master`,
so a
release tag's artifact carries the same guarantee.

This syncs from the latest KubeRay *release*, not from `master`. Master
carries
CRD surface that no release ships, and documenting it here would
advertise
fields a reader can't use.

The `ray.io/v1alpha1` section is stripped on the way in. That API
version is
deprecated and on a removal runway (kuberay-project/kuberay#5124), and its
cross-links
collide with the v1 anchors (kuberay-project/kuberay#5091).

With one package left, the `Packages` index and the `ray.io/v1` heading
restate the page's own subject, so both are dropped and the headings
under them
move up to h2. Sphinx's right-hand page nav lists h2 only, so this is
what puts
the CRD types in it. Heading text is untouched, so the anchors
cross-links
resolve against don't move. A page intro replaces the generated package
blurb
those headings carried, naming the resource types read off the page's
own
index.

Prose that a Go doc comment indented with a tab becomes a list, and the
non-breaking hyphen those comments carry becomes an ASCII one. Tab
indentation
is godoc's code-block convention, so `crd-ref-docs` passes it through
and the
renderer turns the sentences into a preformatted block. Both belong
upstream
(kuberay-project/kuberay#5146) and this step drops out once they're fixed
there.

## Checks

Content-only: the single changed file is documentation under `doc/`, so
the
`docs-go` scope guard applies cleanly. The Read the Docs preview build
on this
PR is the gate — a green build means the regenerated reference still
renders
and all of its in-page anchors resolve.

Nothing else in this PR. If it contains any other change, something is
wrong
with the sync job.

Signed-off-by: Douglas Strodtman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs An issue or change related to documentation docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants