-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add enableIngress validation check in RayCluster webhook #26
Add enableIngress validation check in RayCluster webhook #26
Conversation
@ChristianZaccaria: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this alongside project-codeflare/codeflare-sdk#506 and it works as expected.
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected.
Hey @sutaakar, CI is expected to fail here right? |
71c5f79
to
7dddbff
Compare
@ChristianZaccaria: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@ChristianZaccaria Yes, CI is broken at this moment |
Re-reviewed with line removed. Works as expected. Think we are good to merge it now. |
took me bit time to find out EnableIngress is a bool pointer.... nice! /lgtm |
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved as per offline discussion.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anishasthana, ChristianZaccaria 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 |
This needs to be reverted / removed as the logic does not belong to Kueue, and should work independently with Kuberay, whether Kueue is installed or not. This logic should be added to the DW RayCluster webhook. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds validation to check if the RayCluster headGroupSpec contains the
enableIngress
field OR if it is set totrue
, and if conditions are met, the webhook will forbid the creation of the RayCluster resource.Acceptance criteria:
Which issue(s) this PR fixes:
Jira: https://issues.redhat.com/browse/RHOAIENG-5116
Special notes for your reviewer:
Verification Steps:
make run NAMESPACE=somenamespace
public
.quay.io/yourusername/kueue:v0.6.0-rhoai-2.9-tests-1-gdb3e81af-dirty
kubectl apply --server-side -k config/rhoai
ClusterQueue
,LocalQueue
, andResourceFlavor
if not done already.vi .codeflare/resources/jobtest.yaml
and modifyenableIngress
field under headGroupSpec to be True/False or remove the field entirely.enableIngress
is not False, the RayCluster will not be created.Does this PR introduce a user-facing change?