-
Notifications
You must be signed in to change notification settings - Fork 55
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
[RHOAIENG-6877] - odh-model-controller breaks Knative if KServe-Serve… #203
Conversation
…rless is not enabled chore: Make the validating.odh-model-controller.opendatahub.io intercept only ksvc that contains the serving.kserve.io/inferenceservice label. This label is added by KServe to any ksvc handled by it, this way we avoid other OpenShift Serverless user not be affected by this webhook in case it is not started by odh-model-controller. Signed-off-by: Spolti <[email protected]>
- name: validating.ksvc.odh-model-controller.opendatahub.io | ||
clientConfig: | ||
service: | ||
name: odh-model-controller-webhook-service |
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.
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.
Hmm, yesterday, we talked about it and you suggested not to patch the namespace as it would be replaced anyway.
I can revert back to the patch I have added.
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.
From the cluster:
service:
name: odh-model-controller-webhook-service
namespace: redhat-ods-applications
path: /validate-serving-knative-dev-v1-service
port: 443
failurePolicy: Fail
matchPolicy: Equivalent
name: validating.ksvc.odh-model-controller.opendatahub.io
namespaceSelector: {}
objectSelector:
matchExpressions:
- key: serving.kserve.io/inferenceservice
operator: Exists
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.
OK, I just tested with odh-operator and the result is the expected.
It looks like the odh-operator is doing some additional processing than kustomize.
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: israel-hdez, spolti 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 |
…rless is not enabled
chore: Make the validating.odh-model-controller.opendatahub.io intercept only ksvc that
contains the
serving.kserve.io/inferenceservice
label. This label is added by KServeto any ksvc handled by it, this way we avoid other OpenShift Serverless user not be
affected by this webhook in case it is not started by odh-model-controller.
Description
Steps to test:
odh-model-controller
does not starts the webhook.Applying the patch:
odh-model-operator
didn't start the webhook, and can be checked in the logs.objectSelector
is only filtering, to confirm that, add the kserve labelserving.kserve.io/inferenceservice
with any value and try to deploy the ksvc again, it will fail.Note that, if the odh-model-controller image does not starts and it is not overridden, the test can be done anyways as the webhook will not be functional.
The validation webhook is correctly updated, you can check by querying it:
And check for these line:
How Has This Been Tested?
Merge criteria: