Repository navigation
[docs] Sync the vendored KubeRay CRD API reference - #65618
Conversation
Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
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.
| | `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. | | | |
There was a problem hiding this comment.
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.
| | `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 /> | |
There was a problem hiding this comment.
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.
| | `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 | | |
There was a problem hiding this comment.
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.
| | `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 | | |
…#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]>
## 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]>
Why are these changes needed?
Refreshes the generated KubeRay CRD API reference at
doc/source/cluster/kubernetes/references/api.mdfromray-project/kuberayrelease tag v1.7.0, pinned at commit97509c3.Opened automatically. The upstream file is a build artifact that
elastic/crd-ref-docsgenerates from the Go CRD types inray-operator/apis/ray/, and KubeRay'sray-operator-verify-api-docsCI jobfails on drift between the two, so the content is verified upstream before it
reaches here. That job covers
release-*branches as well asmaster, so arelease tag's artifact carries the same guarantee.
This syncs from the latest KubeRay release, not from
master. Master carriesCRD surface that no release ships, and documenting it here would advertise
fields a reader can't use.
The
ray.io/v1alpha1section is stripped on the way in. That API version isdeprecated 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
Packagesindex and theray.io/v1headingrestate 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-docspasses it through and therenderer 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 thedocs-goscope guard applies cleanly. The Read the Docs preview build on thisPR 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.