-
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-4191] - odh-model-controller should tolerate missing Authorino #177
Conversation
This commit allows to run ODH without Authorino when KServe is Removed. Signed-off-by: Spolti <[email protected]>
check if the serving is enabled as service mesh is tied with Authorino. this will allow rawDeployments to also work without Authorin. Signed-off-by: Spolti <[email protected]>
logMessage = "could not determine if kserve have service mesh enabled, Authorino integration will be enabled" | ||
} | ||
|
||
if enabled { |
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.
Almost! More feedback:
The DSC can be:
apiVersion: datasciencecluster.opendatahub.io/v1
kind: DataScienceCluster
metadata:
name: default-dsc
spec:
components:
kserve:
managementState: "Removed",
serving:
ingressGateway:
certificate:
type: SelfSigned
name: "knative-serving",
managementState: "Managed"
Notice kserve.managementState is Removed
while serving.managementState is Managed
. If KServe is removed, I think odh-model-controller don't need to care about authorino.
So, turns out we would need to check kserve.managementState == Managed && serving.managementState != Removed
, to require authorino here.
I think I'm bad at explaining stuff.
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.
both enabled, right.
okay.
Signed-off-by: Spolti <[email protected]>
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 |
This commit allows to run ODH without Authorino when KServe is Removed.
Description
How Has This Been Tested?
KServe
/serving toManaged
, install the Service Mesh Operator and don't install the Authorino operator, and watch the logs for the error:Merge criteria: