Skip to content

[feat][operator] validate Ray resource metadata in webhook #3831

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidxia
Copy link
Contributor

when the Ray resource is created or updated. For users who opt into installing the webhooks, this validation makes the K8s API fail the resource creation or update request immediately in a synchronous way that's more obvious.

We refactor the RayCluster webhook to use the same validation functions that the RayCluster controller uses. We also add tests for RayJob and RayService webhooks.

follow up to #3083 (comment)

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

when the Ray resource is created or updated. For users who opt into installing
the webhooks, this validation makes the K8s API fail the resource creation or
update request immediately in a synchronous way that's more obvious.

We refactor the RayCluster webhook to use the same validation functions that
the RayCluster controller uses. We also add tests for RayJob and RayService webhooks.

Signed-off-by: David Xia <[email protected]>
@davidxia davidxia marked this pull request as ready for review June 25, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant