Skip to content

Create RayCluster ValidatingWebhook #524

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

Conversation

ChristianZaccaria
Copy link
Contributor

@ChristianZaccaria ChristianZaccaria commented Apr 16, 2024

Issue link

Jira: https://issues.redhat.com/browse/RHOAIENG-5116

What changes have been made

  • Created a ValidatingWebhookConfiguration.
  • The ValidatingWebhook will reject the creation of RayClusters that have the enableIngress field set to true. Moreover, the user won't be allowed to set the field to true on an already existing RayCluster CR.

Verification steps

With the CFO running, attempt to create a RayCluster either from a notebook or locally. The validating webhook will reject creation if the enableIngress field is unset or is true.

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

Copy link
Contributor

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

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

Could you please rebase on top of #530?

@ChristianZaccaria ChristianZaccaria force-pushed the validating-webhook branch 2 times, most recently from cf264f8 to 7b6967a Compare April 18, 2024 07:52
@ChristianZaccaria ChristianZaccaria force-pushed the validating-webhook branch 2 times, most recently from eed9ece to fa02948 Compare April 18, 2024 08:54
@astefanutti
Copy link
Contributor

/lgtm

@astefanutti
Copy link
Contributor

/approve

Copy link

openshift-ci bot commented Apr 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: astefanutti

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 2b885eb into project-codeflare:main Apr 18, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants